forked from 77media/video-flow
首次自动跳剪辑
This commit is contained in:
parent
91751e5d95
commit
1131c12e09
@ -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]);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user