From 2b9fc88d3249bf7dcde4afe0cf9ba6c6352f56fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Thu, 16 Oct 2025 15:25:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8D=89=E5=9B=BE=E7=94=9F?= =?UTF-8?q?=E6=88=90=E5=A4=B1=E8=B4=A5=E5=8D=A1=E4=BD=8F=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E6=9C=80=E7=BB=88=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pages/work-flow/use-workflow-data.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/pages/work-flow/use-workflow-data.tsx b/components/pages/work-flow/use-workflow-data.tsx index 13fa349..4258ea4 100644 --- a/components/pages/work-flow/use-workflow-data.tsx +++ b/components/pages/work-flow/use-workflow-data.tsx @@ -250,7 +250,6 @@ export function useWorkflowData({}: UseWorkflowDataProps = {}) { } taskCurrent.scenes.total_count = task.task_result.total_count; if (task.task_status !== 'COMPLETED' || taskCurrent.scenes.total_count !== realSketchResultData.length) { - console.log('task.task_status', task.task_status, 'taskCurrent.scenes.total_count', taskCurrent.scenes.total_count, 'realSketchResultData.length', realSketchResultData.length); if (task.task_status === 'FAILED' && taskCurrent.scenes.total_count === realSketchResultData.length) { continue; } @@ -457,7 +456,7 @@ export function useWorkflowData({}: UseWorkflowDataProps = {}) { characterList.push({ name: character.character_name, url: character.image_path, - status: character.image_path ? 1 : (data.character.task_status === 'COMPLETED' ? 2 : 0), + status: character.image_path ? 1 : ((data.character.task_status === 'COMPLETED' || data.character.task_status === 'FAILED') ? 2 : 0), type: 'role' }); } @@ -477,7 +476,7 @@ export function useWorkflowData({}: UseWorkflowDataProps = {}) { sketchList.push({ url: sketch.image_path, script: sketch.sketch_name, - status: sketch.image_path ? 1 : (data.sketch.task_status === 'COMPLETED' ? 2 : 0), + status: sketch.image_path ? 1 : ((data.sketch.task_status === 'COMPLETED' || data.sketch.task_status === 'FAILED') ? 2 : 0), type: 'scene' }); }