From c33a615c90610c104a0d5a819f1df270b9ff1e75 Mon Sep 17 00:00:00 2001 From: engigu Date: Fri, 13 Feb 2026 19:44:24 +0800 Subject: [PATCH] feat: fix language page style --- agent/agent.go | 2 +- web/src/views/dependencies/Dependencies.vue | 14 +++++++------- web/src/views/environments/Environments.vue | 6 +++--- web/src/views/history/History.vue | 18 +++++++++--------- web/src/views/tasks/Tasks.vue | 8 ++++---- 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/agent/agent.go b/agent/agent.go index 15ccc8a..d84f01c 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -516,7 +516,7 @@ func (a *Agent) handleExecute(data json.RawMessage) { Envs: executor.ParseEnvVars(task.Envs), Timeout: task.Timeout, Languages: task.Languages, - UseMise: false, + UseMise: task.UseMise(), Type: executor.TaskTypeManual, } diff --git a/web/src/views/dependencies/Dependencies.vue b/web/src/views/dependencies/Dependencies.vue index eb5f5bc..3fb4877 100644 --- a/web/src/views/dependencies/Dependencies.vue +++ b/web/src/views/dependencies/Dependencies.vue @@ -250,25 +250,25 @@ onMounted(async () => {

依赖管理

-

管理 Python 和 Node.js 依赖包

+

管理工具运行环境的依赖包

+ class="bg-primary/5 border border-primary/10 rounded-lg p-3 flex items-center justify-between">
- + 正在管理环境: {{ language }}@{{ langVersion }}
- Scoped Environment + Scoped Environment
-
+
{{ filteredDeps.length }} 个包
@@ -293,7 +293,7 @@ onMounted(async () => {
+ class="flex items-center gap-4 px-4 py-2 border-b bg-muted/20 text-sm text-muted-foreground font-medium min-w-[400px]"> 包名 版本 @@ -311,7 +311,7 @@ onMounted(async () => { {{ searchQuery ? '无匹配结果' : '暂无依赖包' }}
+ class="flex items-center gap-4 px-4 py-2 hover:bg-muted/30 transition-colors"> diff --git a/web/src/views/environments/Environments.vue b/web/src/views/environments/Environments.vue index a1c3adc..8738e60 100644 --- a/web/src/views/environments/Environments.vue +++ b/web/src/views/environments/Environments.vue @@ -133,7 +133,7 @@ onMounted(loadEnvVars)
+ class="flex items-center gap-4 px-4 py-2 border-b bg-muted/20 text-sm text-muted-foreground font-medium min-w-[500px]"> 变量名 @@ -145,9 +145,9 @@ onMounted(loadEnvVars) 暂无环境变量
+ class="flex items-center gap-4 px-4 py-2 hover:bg-muted/30 transition-colors"> {{ env.name }} + class="w-32 sm:w-48 font-medium truncate shrink-0 text-xs bg-muted/40 px-2 py-1 rounded">{{ env.name }} diff --git a/web/src/views/history/History.vue b/web/src/views/history/History.vue index b66d442..5fd4d84 100644 --- a/web/src/views/history/History.vue +++ b/web/src/views/history/History.vue @@ -245,7 +245,7 @@ watch(() => route.query.task_id, (newTaskId) => {
+ class="flex sm:hidden items-center gap-2 px-3 py-2 border-b bg-muted/20 text-xs text-muted-foreground font-medium"> ID 类型 任务名称 @@ -254,7 +254,7 @@ watch(() => route.query.task_id, (newTaskId) => {
@@ -307,7 +307,7 @@ watch(() => route.query.task_id, (newTaskId) => {
{{ formatDuration(log.duration) - }} + }}
{{ formatDuration(log.duration) - }} + }} @@ -409,7 +409,7 @@ watch(() => route.query.task_id, (newTaskId) => {
命令 - + {{ selectedLog.command }}
@@ -424,7 +424,7 @@ watch(() => route.query.task_id, (newTaskId) => { {{ selectedLog.error }}
-
+
输出