去掉自动跳转到剪辑

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 { useUpdateEffect } from '@/app/hooks/useUpdateEffect';
import { LOADING_TEXT_MAP, TaskObject, Status, Stage } from '@/api/DTO/movieEdit';
import { all } from 'axios';
export function useWorkflowData() {
useEffect(() => {
@ -118,11 +117,11 @@ export function useWorkflowData() {
window.open(`https://smartcut.huiying.video/ai-editor/${episodeId}?token=${token}`, '_self');
}, [episodeId]);
useEffect(() => {
if (!from && canGoToCut) {
generateEditPlan();
}
}, [canGoToCut]);
// useEffect(() => {
// if (!from && canGoToCut) {
// generateEditPlan();
// }
// }, [canGoToCut]);
useUpdateEffect(() => {
@ -562,7 +561,8 @@ export function useWorkflowData() {
applyScript,
fallbackToStep,
originalText: state.originalText,
showGotoCutButton: from && currentLoadingText.includes('Post-production') ? true : false,
// showGotoCutButton: from && currentLoadingText.includes('Post-production') ? true : false,
showGotoCutButton: canGoToCut ? true : false,
generateEditPlan
};
}