From 94cf2be101378b9726799c111f17b2ecd3835fd6 Mon Sep 17 00:00:00 2001 From: aylvn Date: Sun, 16 Mar 2025 15:04:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E7=8A=B6=E6=80=81=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- desktop/frontend/src/views/task/TaskIndex.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop/frontend/src/views/task/TaskIndex.vue b/desktop/frontend/src/views/task/TaskIndex.vue index 8ee8a35..37e73d8 100644 --- a/desktop/frontend/src/views/task/TaskIndex.vue +++ b/desktop/frontend/src/views/task/TaskIndex.vue @@ -123,7 +123,7 @@ const buildEventSource = (taskId) => { // 处理错误情况 loading.value = false eventSource.value.close() - taskInfo.value.status = "taskStatus.failed" + taskInfo.value.status = "failed" utils.pop("任务执行失败", "error") } @@ -142,7 +142,7 @@ const handleEvent = (event, type) => { console.log('task completed'); loading.value = false eventSource.value.close() - taskInfo.value.status = "taskStatus.success" + taskInfo.value.status = "success" utils.pop("任务已完成", "success") return } @@ -287,7 +287,7 @@ function stop() { console.log("stop") loading.value = false eventSource.value.close() - taskInfo.value.status = "taskStatus.terminated" + taskInfo.value.status = "terminated" utils.pop("用户终止任务", "error") }