From b1ff62a3bb804b2893c591c9f1d9121d9462c6bf Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Fri, 24 Oct 2025 17:01:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3Tab=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 切换Tab时重置页码 --- app/pages/search.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/pages/search.vue b/app/pages/search.vue index e2cd04c..f1390b4 100644 --- a/app/pages/search.vue +++ b/app/pages/search.vue @@ -205,6 +205,10 @@ router.replace(localePath({ path: '/search' })); }; + watch(activeTab, () => { + currentPage.value = 1; // 重置页码 + }); + watch( () => route.query.query, async (newQuery) => {