From 924c2e03bfe5c7830d86fda5474fa18b4fcbd2a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Thu, 26 Feb 2026 15:19:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=86=E9=A2=91=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugins/video/detail/detail.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/plugins/video/detail/detail.vue b/pages/plugins/video/detail/detail.vue index 0e41211e..de319ce0 100644 --- a/pages/plugins/video/detail/detail.vue +++ b/pages/plugins/video/detail/detail.vue @@ -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); // 数据预加载逻辑