diff --git a/components/pages/work-flow/use-workflow-data.tsx b/components/pages/work-flow/use-workflow-data.tsx index 76f80ba..4eb9ea6 100644 --- a/components/pages/work-flow/use-workflow-data.tsx +++ b/components/pages/work-flow/use-workflow-data.tsx @@ -204,10 +204,10 @@ export function useWorkflowData({ onEditPlanGenerated }: UseWorkflowDataProps = useEffect(() => { // 主动触发剪辑 - if (canGoToCut && taskObject.currentStage === 'video') { + if (canGoToCut && (taskObject.currentStage === 'video' || !isGenerateEditPlan)) { generateEditPlan(); } - }, [canGoToCut, taskObject.currentStage]); + }, [canGoToCut, taskObject.currentStage, isGenerateEditPlan]); useEffect(() => { if (isShowError) {