fix: speed test ui

This commit is contained in:
shinya
2025-07-11 10:25:41 +08:00
parent 244ad17a5b
commit 868ec2d5aa
2 changed files with 22 additions and 16 deletions

View File

@@ -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());