From 7454eb8b3d68f0cba6cb09479198300a04c22ecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=B7=E9=BE=99?= Date: Sun, 31 Aug 2025 00:42:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pages/work-flow/media-viewer.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/pages/work-flow/media-viewer.tsx b/components/pages/work-flow/media-viewer.tsx index 2d678e3..5c67ca4 100644 --- a/components/pages/work-flow/media-viewer.tsx +++ b/components/pages/work-flow/media-viewer.tsx @@ -403,7 +403,7 @@ export const MediaViewer = React.memo(function MediaViewer({ // 渲染视频内容 const renderVideoContent = (onGotoCut: () => void) => { - const urls = taskObject.videos.data[currentSketchIndex].urls ? taskObject.videos.data[currentSketchIndex].urls.join(',') : ''; + const urls = taskObject.videos.data[currentSketchIndex]?.urls ? taskObject.videos.data[currentSketchIndex]?.urls.join(',') : ''; return (
)} - + {/* 视频 多个 取第一个 */} { taskObject.videos.data[currentSketchIndex].urls && ( @@ -473,11 +473,11 @@ export const MediaViewer = React.memo(function MediaViewer({ setVideoPreview(currentVideo.urls[0], currentVideo.video_id); if (onOpenChat) onOpenChat(); } - }} /> + }} /> {showGotoCutButton && ( - + )}
@@ -613,7 +613,7 @@ export const MediaViewer = React.memo(function MediaViewer({ whileTap={{ scale: 0.9 }} className="relative" > - +