feat: 拆解完成后自动刷新项目数据
This commit is contained in:
1 parent
2baea6ccf7
commit
6b3cb8c78b
1 file changed
+7
@@ -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)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user