From c804d849b9f1830498bd2d417168430c380e82d7 Mon Sep 17 00:00:00 2001 From: GouJ Date: Sat, 26 Sep 2026 21:44:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=A7=E6=9C=AC=E6=8B=86=E8=A7=A3?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=90=8E=E5=BC=80=E6=94=BE=E8=A7=86=E8=A7=89?= =?UTF-8?q?=E5=88=B6=E4=BD=9C=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/breakdown/BreakdownPage.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/features/breakdown/BreakdownPage.vue b/src/features/breakdown/BreakdownPage.vue index a63d3bd..17984ba 100644 --- a/src/features/breakdown/BreakdownPage.vue +++ b/src/features/breakdown/BreakdownPage.vue @@ -23,7 +23,7 @@ import { errorMessage } from '../../lib/http' import { downloadText, nodeLabel } from '../../lib/format' /** 拆解工作区:先预览真实分组,再启动;恢复操作根据 checkpoint 分阶段展示。 */ -const { project, checkpoints, refresh, error } = useProjectContext() +const { project, checkpoints, refresh, refreshStageReadiness, stageReadiness, error } = useProjectContext() const groupSize = ref(3) const modules = ref(['character', 'scene', 'prop']) const preview = ref(null) @@ -56,7 +56,8 @@ const taskStopped = computed(() => execution.value?.status === 'failed' || execu watch( () => backgroundExecution.query.data.value?.status, (status, previous) => { - if ((status === 'completed' || status === 'failed') && status !== previous) void refresh() + if ((status === 'completed' || status === 'failed') && status !== previous) + void Promise.all([refresh(), refreshStageReadiness()]) } ) const showRecovery = computed( @@ -66,6 +67,7 @@ const configValid = computed( () => Number.isSafeInteger(groupSize.value) && groupSize.value > 0 && modules.value.length > 0 ) const input = computed(() => ({ groupSize: groupSize.value, modules: [...modules.value] })) +const stageComplete = computed(() => stageReadiness.value?.breakdown.ready === true) const canStart = computed( () => !!project.value?.episodes.length && @@ -157,7 +159,7 @@ const rules = {