forked from 77media/video-flow
首次自动跳剪辑
This commit is contained in:
parent
91751e5d95
commit
1131c12e09
@ -113,15 +113,14 @@ export function useWorkflowData() {
|
||||
}
|
||||
}, [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');
|
||||
}, [episodeId]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!from && canGoToCut && taskObject.status !== 'COMPLETED') {
|
||||
getGenerateEditPlan({ project_id: episodeId }).then(() => {
|
||||
generateEditPlan();
|
||||
});
|
||||
generateEditPlan(true);
|
||||
}
|
||||
}, [canGoToCut, taskObject.status]);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user