去掉自动跳转到剪辑

This commit is contained in:
北枳 2025-08-30 14:54:15 +08:00
parent 37df90f649
commit 1fd838993b

View File

@ -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
}; };
} }