mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-23 19:52:09 +08:00
fix: speed test ui
This commit is contained in:
@@ -525,6 +525,11 @@ function PlayPageClient() {
|
||||
// 清理URL参数(移除index参数)
|
||||
if (searchParams.has('index')) {
|
||||
const newUrl = new URL(window.location.href);
|
||||
newUrl.searchParams.set('year', detailData.year || 'unknown');
|
||||
newUrl.searchParams.set(
|
||||
'title',
|
||||
detailData.title || videoTitleRef.current
|
||||
);
|
||||
newUrl.searchParams.delete('index');
|
||||
newUrl.searchParams.delete('position');
|
||||
window.history.replaceState({}, '', newUrl.toString());
|
||||
|
||||
Reference in New Issue
Block a user