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" > - +