From 16e92ea42bba43e6dd8b5512d6d0827995fc6c5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Sat, 26 Jul 2025 11:54:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dloading=20info?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pages/work-flow/task-info.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/components/pages/work-flow/task-info.tsx b/components/pages/work-flow/task-info.tsx index 010c0be..344be20 100644 --- a/components/pages/work-flow/task-info.tsx +++ b/components/pages/work-flow/task-info.tsx @@ -153,19 +153,21 @@ export function TaskInfo({ if (isScriptModalOpen) { setIsScriptModalOpen(false); } - console.log('isScriptModalOpen-Post-production', currentLoadingText, isScriptModalOpen); - setIsScriptModalOpen(true); setCurrentStage(3); + console.log('isScriptModalOpen-Post-production', currentLoadingText, isScriptModalOpen); + timerRef.current = setTimeout(() => { + setIsScriptModalOpen(true); + }, 8000); } if (currentLoadingText.includes('video') && !currentLoadingText.includes('Post-production')) { console.log('isScriptModalOpen-video', currentLoadingText, isScriptModalOpen); if (isScriptModalOpen) { setIsScriptModalOpen(false); + setCurrentStage(2); // 延迟8s 再次打开 timerRef.current = setTimeout(() => { setIsScriptModalOpen(true); - setCurrentStage(2); }, 8000); } else { setIsScriptModalOpen(true); @@ -183,11 +185,11 @@ export function TaskInfo({ console.log('isScriptModalOpen-sketch', currentLoadingText, isScriptModalOpen); if (isScriptModalOpen) { setIsScriptModalOpen(false); + setCurrentStage(1); // 延迟8s 再次打开 timerRef.current = setTimeout(() => { setIsScriptModalOpen(true); - setCurrentStage(1); }, 8000); } else { setIsScriptModalOpen(true);