From eebc880afa85ac60a34b75f0950abbd4469743b3 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: Wed, 13 Aug 2025 21:27:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8useWorkflowData=E5=92=8CShotTabContent?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E4=B8=AD=E6=B7=BB=E5=8A=A0=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E6=97=A5=E5=BF=97=EF=BC=8C=E8=AE=B0=E5=BD=95taskData=E5=92=8Cr?= =?UTF-8?q?oles=E7=9A=84=E5=8F=98=E5=8C=96=EF=BC=8C=E4=BB=A5=E4=BE=BF?= =?UTF-8?q?=E4=BA=8E=E5=90=8E=E7=BB=AD=E8=B0=83=E8=AF=95=E5=92=8C=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=BF=BD=E8=B8=AA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pages/work-flow/use-workflow-data.tsx | 2 ++ components/ui/shot-tab-content.tsx | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/components/pages/work-flow/use-workflow-data.tsx b/components/pages/work-flow/use-workflow-data.tsx index ac672ec..e97bc7e 100644 --- a/components/pages/work-flow/use-workflow-data.tsx +++ b/components/pages/work-flow/use-workflow-data.tsx @@ -586,6 +586,8 @@ export function useWorkflowData() { } } + console.log('---look-taskData', taskData); + // 设置步骤 setCurrentStep(taskData.status); setTaskObject(prev => { diff --git a/components/ui/shot-tab-content.tsx b/components/ui/shot-tab-content.tsx index 6fad1db..bc8d199 100644 --- a/components/ui/shot-tab-content.tsx +++ b/components/ui/shot-tab-content.tsx @@ -48,6 +48,10 @@ export function ShotTabContent({ const shotsEditorRef = useRef(null); const videoRef = useRef(null); + useEffect(() => { + console.log('shotTabContent-----roles', roles); + }, [roles]); + // 监听当前选中index变化 useEffect(() => { console.log('shotTabContent-----shotData', shotData);