forked from 77media/video-flow
修复问题
This commit is contained in:
parent
3e4e947159
commit
7454eb8b3d
@ -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"
|
||||||
@ -433,7 +433,7 @@ export const MediaViewer = React.memo(function MediaViewer({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
||||||
{/* 视频 多个 取第一个 */}
|
{/* 视频 多个 取第一个 */}
|
||||||
{ taskObject.videos.data[currentSketchIndex].urls && (
|
{ taskObject.videos.data[currentSketchIndex].urls && (
|
||||||
@ -473,11 +473,11 @@ export const MediaViewer = React.memo(function MediaViewer({
|
|||||||
setVideoPreview(currentVideo.urls[0], currentVideo.video_id);
|
setVideoPreview(currentVideo.urls[0], currentVideo.video_id);
|
||||||
if (onOpenChat) onOpenChat();
|
if (onOpenChat) onOpenChat();
|
||||||
}
|
}
|
||||||
}} />
|
}} />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
{showGotoCutButton && (
|
{showGotoCutButton && (
|
||||||
<Tooltip placement="top" title='Go to AI-powered editing platform'>
|
<Tooltip placement="top" title='Go to AI-powered editing platform'>
|
||||||
<GlassIconButton icon={Scissors} size='sm' onClick={onGotoCut} />
|
<GlassIconButton icon={Scissors} size='sm' onClick={onGotoCut} />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
@ -613,7 +613,7 @@ export const MediaViewer = React.memo(function MediaViewer({
|
|||||||
whileTap={{ scale: 0.9 }}
|
whileTap={{ scale: 0.9 }}
|
||||||
className="relative"
|
className="relative"
|
||||||
>
|
>
|
||||||
|
|
||||||
</motion.div>
|
</motion.div>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
</AnimatePresence>
|
</AnimatePresence>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user