From 6b3cb8c78b6e26808b96711711e82f5579e9be92 Mon Sep 17 00:00:00 2001 From: GouJ Date: Sat, 26 Sep 2026 20:06:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8B=86=E8=A7=A3=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E5=90=8E=E8=87=AA=E5=8A=A8=E5=88=B7=E6=96=B0=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/breakdown/BreakdownPage.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/features/breakdown/BreakdownPage.vue b/src/features/breakdown/BreakdownPage.vue index 46eeb4c..f2bbc5b 100644 --- a/src/features/breakdown/BreakdownPage.vue +++ b/src/features/breakdown/BreakdownPage.vue @@ -52,6 +52,13 @@ const backgroundExecution = useWorkflowExecution(projectId, 'breakdown') const recovery = computed(() => recoveryOptions(checkpoints.value)) const execution = computed(() => snapshot.value?.workflowExecution) const taskStopped = computed(() => execution.value?.status === 'failed' || execution.value?.status === 'completed') +/** 后台拆解结束后自动刷新项目、Checkpoint 与正式主体/分镜数据。 */ +watch( + () => backgroundExecution.query.data.value?.status, + (status, previous) => { + if ((status === 'completed' || status === 'failed') && status !== previous) void refresh() + } +) const showRecovery = computed( () => records.value.length > 0 && (execution.value?.status !== 'completed' || validation.value?.valid === false) )