From d98c8d17d91877d383f94ce47ab1753e3d42ac3a Mon Sep 17 00:00:00 2001 From: zouzhiwen <409053122@qq.com> Date: Mon, 18 May 2026 16:17:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8C=89=E8=B5=84=E6=BA=90=E5=94=A4?= =?UTF-8?q?=E9=86=92=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/views/task/TaskChainDetail.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env.development b/.env.development index f4175a7..d12f28e 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,3 @@ # 开发环境 — 留空,走 vite.config.ts 中的 proxy -VITE_API_BASE=https://sit-api.baoshi56.com +VITE_API_BASE=http://localhost:8114 VITE_ENTRY_OPTIONS=ops,monitor diff --git a/src/views/task/TaskChainDetail.vue b/src/views/task/TaskChainDetail.vue index 14528e9..4d4b562 100644 --- a/src/views/task/TaskChainDetail.vue +++ b/src/views/task/TaskChainDetail.vue @@ -607,7 +607,8 @@ const activeScenario = ref(null) const callbackForm = ref>({}) function canMockCallback(task: TaskVO): boolean { - if (task.status !== 'CREATED' && task.status !== 'IN_PROGRESS') return false + const mockableStatuses = ['CREATED', 'IN_PROGRESS', 'FAILED'] + if (!mockableStatuses.includes(task.status)) return false return !!callbackScenarioMap[task.type]?.length }