首次自动跳剪辑

This commit is contained in:
北枳 2025-08-31 02:42:59 +08:00
parent 91751e5d95
commit 1131c12e09

View File

@ -113,15 +113,14 @@ export function useWorkflowData() {
} }
}, [taskObject.currentStage]); }, [taskObject.currentStage]);
const generateEditPlan = useCallback(async () => { const generateEditPlan = useCallback(async (isInit?: boolean) => {
isInit && await getGenerateEditPlan({ project_id: episodeId });
window.open(`https://smartcut.huiying.video/ai-editor/${episodeId}?token=${token}&user_id=${useid}`, '_target'); window.open(`https://smartcut.huiying.video/ai-editor/${episodeId}?token=${token}&user_id=${useid}`, '_target');
}, [episodeId]); }, [episodeId]);
useEffect(() => { useEffect(() => {
if (!from && canGoToCut && taskObject.status !== 'COMPLETED') { if (!from && canGoToCut && taskObject.status !== 'COMPLETED') {
getGenerateEditPlan({ project_id: episodeId }).then(() => { generateEditPlan(true);
generateEditPlan();
});
} }
}, [canGoToCut, taskObject.status]); }, [canGoToCut, taskObject.status]);