forked from 77media/video-flow
去掉自动跳转到剪辑
This commit is contained in:
parent
37df90f649
commit
1fd838993b
@ -6,7 +6,6 @@ import { detailScriptEpisodeNew, getScriptTitle, getRunningStreamData, pauseMovi
|
|||||||
import { useScriptService } from "@/app/service/Interaction/ScriptService";
|
import { useScriptService } from "@/app/service/Interaction/ScriptService";
|
||||||
import { useUpdateEffect } from '@/app/hooks/useUpdateEffect';
|
import { useUpdateEffect } from '@/app/hooks/useUpdateEffect';
|
||||||
import { LOADING_TEXT_MAP, TaskObject, Status, Stage } from '@/api/DTO/movieEdit';
|
import { LOADING_TEXT_MAP, TaskObject, Status, Stage } from '@/api/DTO/movieEdit';
|
||||||
import { all } from 'axios';
|
|
||||||
|
|
||||||
export function useWorkflowData() {
|
export function useWorkflowData() {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -118,11 +117,11 @@ export function useWorkflowData() {
|
|||||||
window.open(`https://smartcut.huiying.video/ai-editor/${episodeId}?token=${token}`, '_self');
|
window.open(`https://smartcut.huiying.video/ai-editor/${episodeId}?token=${token}`, '_self');
|
||||||
}, [episodeId]);
|
}, [episodeId]);
|
||||||
|
|
||||||
useEffect(() => {
|
// useEffect(() => {
|
||||||
if (!from && canGoToCut) {
|
// if (!from && canGoToCut) {
|
||||||
generateEditPlan();
|
// generateEditPlan();
|
||||||
}
|
// }
|
||||||
}, [canGoToCut]);
|
// }, [canGoToCut]);
|
||||||
|
|
||||||
|
|
||||||
useUpdateEffect(() => {
|
useUpdateEffect(() => {
|
||||||
@ -562,7 +561,8 @@ export function useWorkflowData() {
|
|||||||
applyScript,
|
applyScript,
|
||||||
fallbackToStep,
|
fallbackToStep,
|
||||||
originalText: state.originalText,
|
originalText: state.originalText,
|
||||||
showGotoCutButton: from && currentLoadingText.includes('Post-production') ? true : false,
|
// showGotoCutButton: from && currentLoadingText.includes('Post-production') ? true : false,
|
||||||
|
showGotoCutButton: canGoToCut ? true : false,
|
||||||
generateEditPlan
|
generateEditPlan
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user