From d602dc49b630e22f8a71dd30dbfc9d61277c2c62 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: Tue, 9 Sep 2025 00:05:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AE=E8=AF=A2=E9=94=99=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pages/work-flow/use-workflow-data.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/pages/work-flow/use-workflow-data.tsx b/components/pages/work-flow/use-workflow-data.tsx index d31b0c1..5ef776d 100644 --- a/components/pages/work-flow/use-workflow-data.tsx +++ b/components/pages/work-flow/use-workflow-data.tsx @@ -228,13 +228,15 @@ export function useWorkflowData({ onEditPlanGenerated, editingStatus }: UseWorkf if (isShowError) { window.msg.error('Too many failed storyboards, unable to execute automatic editing.', 8000); setCurrentLoadingText(LOADING_TEXT_MAP.toManyFailed); + // 停止轮询 + setNeedStreamData(false); } if (editingStatus === 'error') { window.msg.error('Editing failed, Please click the edit button to go to the intelligent editing platform.', 8000); setCurrentLoadingText(LOADING_TEXT_MAP.editingError); + // 停止轮询 + setNeedStreamData(false); } - // 停止轮询 - setNeedStreamData(false); }, [isShowError, editingStatus]);