修复问题

This commit is contained in:
海龙 2025-08-31 00:42:28 +08:00
parent 3e4e947159
commit 7454eb8b3d

View File

@ -403,7 +403,7 @@ export const MediaViewer = React.memo(function MediaViewer({
// 渲染视频内容 // 渲染视频内容
const renderVideoContent = (onGotoCut: () => void) => { 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 ( return (
<div <div
className="relative w-full h-full rounded-lg group" className="relative w-full h-full rounded-lg group"