From e1686c9c6ff1c14e9bc9fb1239430d84a10201a4 Mon Sep 17 00:00:00 2001 From: ronger Date: Fri, 24 Mar 2023 11:59:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(components):=20=E4=BF=AE=E5=A4=8D=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E5=88=86=E9=A1=B5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/index.vue b/pages/index.vue index a5f4999..8a85999 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -20,7 +20,7 @@ export default { }, watch: { '$route'(to, from) { - if (from.query.page && to.query.page) { + if ((to.query.page || 1) !== (from.query.page || 1)) { this.$router.go() } }