diff --git a/apps/web/src/pages/generate/components/material/ManualMaterialList.tsx b/apps/web/src/pages/generate/components/material/ManualMaterialList.tsx index faafc7518..a067e1098 100644 --- a/apps/web/src/pages/generate/components/material/ManualMaterialList.tsx +++ b/apps/web/src/pages/generate/components/material/ManualMaterialList.tsx @@ -25,8 +25,12 @@ const ManualMaterialList: React.FC = ({ const handleVideoMouseEnter = useCallback((e: React.MouseEvent) => { const video = e.currentTarget - // 暂停之前正在播放的视频 - if (activeVideoRef.current && activeVideoRef.current !== video) { + // 暂停之前正在播放的视频(检查是否仍在 DOM 中) + if ( + activeVideoRef.current && + activeVideoRef.current !== video && + document.body.contains(activeVideoRef.current) + ) { activeVideoRef.current.pause() activeVideoRef.current.currentTime = 0 }