From 863858bcb6d17131c017961db73babd2d82f4c46 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 18:09:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0MediaViewer=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9handleEditClick=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E4=BB=A5=E6=94=AF=E6=8C=81=E4=BB=8E'final'=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E6=9A=82=E5=81=9C=E8=A7=86=E9=A2=91=E6=92=AD=E6=94=BE=EF=BC=8C?= =?UTF-8?q?=E5=B9=B6=E5=9C=A8=E7=BC=96=E8=BE=91=E6=8C=89=E9=92=AE=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E4=BA=8B=E4=BB=B6=E4=B8=AD=E4=BC=A0=E9=80=92=E8=AF=A5?= =?UTF-8?q?=E5=8F=82=E6=95=B0=EF=BC=8C=E6=8F=90=E5=8D=87=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BA=A4=E4=BA=92=E4=BD=93=E9=AA=8C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pages/work-flow/media-viewer.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/components/pages/work-flow/media-viewer.tsx b/components/pages/work-flow/media-viewer.tsx index e94e7a4..dd7a6d1 100644 --- a/components/pages/work-flow/media-viewer.tsx +++ b/components/pages/work-flow/media-viewer.tsx @@ -147,7 +147,11 @@ export function MediaViewer({ }; // 包装编辑按钮点击事件 - const handleEditClick = (tab: string) => { + const handleEditClick = (tab: string, from?: string) => { + if (from === 'final') { + // 暂停视频播放 + finalVideoRef.current?.pause(); + } // TODO 点击没有任何事件效果,页面没变化 setUserHasInteracted(true); onEditModalOpen(tab); @@ -348,7 +352,7 @@ export function MediaViewer({ handleEditClick('4')} + onClick={() => handleEditClick('4', 'final')} /> )}