轮询错了

This commit is contained in:
北枳 2025-09-09 00:05:00 +08:00
parent e9986801ce
commit d602dc49b6

View File

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