fix(player/page): 兼容 Chrome/Safari 源切换播放中断

- 移除 window.location.reload()
- 添加注释说明自动重新获取机制
This commit is contained in:
Troray
2026-01-24 02:40:55 +08:00
parent 49c37b372f
commit 69f49d88fd
+1 -2
View File
@@ -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
}}
/>
)}