mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-13 07:43:43 +08:00
fix(player/page): 兼容 Chrome/Safari 源切换播放中断
- 移除 window.location.reload() - 添加注释说明自动重新获取机制
This commit is contained in:
+1
-2
@@ -217,8 +217,7 @@ function PlayerContent() {
|
||||
}
|
||||
setCurrentSourceId(newSource.source);
|
||||
router.replace(`/player?${params.toString()}`, { scroll: false });
|
||||
// Trigger refetch
|
||||
window.location.reload();
|
||||
// Data will be refetched automatically via useEffect in useVideoPlayer hook
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user