修改视频播放处理

This commit is contained in:
于肖磊
2026-02-26 15:19:09 +08:00
parent bf771658b4
commit 924c2e03bf

View File

@ -610,10 +610,10 @@
// 使用URLSearchParams处理当前查询参数
const url = new URL(location.href);
url.searchParams.set('id', id);
history.replaceState(null, '', url.pathname + url.search);
// 替换URL路径保持查询参数不变
const pathname = location.href.split('?')[0];
history.replaceState(null, '', pathname + url.search);
//#endif
const index = this.video_data_list.findIndex(item => item.id == id);
// 数据预加载逻辑