From 66f70280d17d875f64fe57129fdd22785f2228fe 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, 16 Aug 2025 15:55:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E5=92=8C=E5=8D=B8=E8=BD=BD=E6=97=A5=E5=BF=97=EF=BC=8C?= =?UTF-8?q?=E6=8F=90=E5=8D=87=E8=B0=83=E8=AF=95=E4=BF=A1=E6=81=AF=E5=8F=AF?= =?UTF-8?q?=E8=AF=BB=E6=80=A7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pages/work-flow.tsx | 9 +++++---- components/pages/work-flow/use-workflow-data.tsx | 5 ++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/components/pages/work-flow.tsx b/components/pages/work-flow.tsx index 2475878..a1d6062 100644 --- a/components/pages/work-flow.tsx +++ b/components/pages/work-flow.tsx @@ -17,7 +17,11 @@ import { SaveEditUseCase } from "@/app/service/usecase/SaveEditUseCase"; import { useSearchParams } from "next/navigation"; const WorkFlow = React.memo(function WorkFlow() { - console.log('WorkFlow--0294877777777777') + useEffect(() => { + console.log("init-WorkFlow"); + return () => console.log("unmount-WorkFlow"); + }, []); + const containerRef = useRef(null); const [isEditModalOpen, setIsEditModalOpen] = React.useState(false); const [activeEditTab, setActiveEditTab] = React.useState('1'); @@ -31,8 +35,6 @@ const WorkFlow = React.memo(function WorkFlow() { taskObject, scriptData, taskSketch, - taskScenes, - taskShotSketch, taskVideos, sketchCount, isLoading, @@ -43,7 +45,6 @@ const WorkFlow = React.memo(function WorkFlow() { currentLoadingText, totalSketchCount, roles, - music, final, dataLoadError, setCurrentSketchIndex, diff --git a/components/pages/work-flow/use-workflow-data.tsx b/components/pages/work-flow/use-workflow-data.tsx index 01d62e1..1754d64 100644 --- a/components/pages/work-flow/use-workflow-data.tsx +++ b/components/pages/work-flow/use-workflow-data.tsx @@ -42,7 +42,10 @@ type ApiStep = keyof typeof STEP_MAP; export function useWorkflowData() { - console.log('init-useWorkflowData') + useEffect(() => { + console.log("init-useWorkflowData"); + return () => console.log("unmount-useWorkflowData"); + }, []); const searchParams = useSearchParams(); const episodeId = searchParams.get('episodeId') || '';