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]);