From 414872f61e998ded0d42db6c02f09efc332ebddb Mon Sep 17 00:00:00 2001 From: AnNingUI Date: Tue, 12 Aug 2025 20:42:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3tag=E4=B8=8E=E7=B1=BB?= =?UTF-8?q?=E5=88=AB=E5=88=87=E6=8D=A2=E9=9C=80=E8=A6=81reload=E6=95=B4?= =?UTF-8?q?=E4=B8=AA=E9=A1=B5=E9=9D=A2=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend_nuxt/components/MenuComponent.vue | 8 +-- frontend_nuxt/pages/index.vue | 72 ++++++++++++++-------- 2 files changed, 50 insertions(+), 30 deletions(-) diff --git a/frontend_nuxt/components/MenuComponent.vue b/frontend_nuxt/components/MenuComponent.vue index b91b50772..3b0876a07 100644 --- a/frontend_nuxt/components/MenuComponent.vue +++ b/frontend_nuxt/components/MenuComponent.vue @@ -210,17 +210,13 @@ export default { const gotoCategory = (c) => { const value = encodeURIComponent(c.id ?? c.name) - router.push({ path: '/', query: { category: value } }).then(() => { - window.location.reload() - }) + router.push({ path: '/', query: { category: value } }) handleItemClick() } const gotoTag = (t) => { const value = encodeURIComponent(t.id ?? t.name) - router.push({ path: '/', query: { tags: value } }).then(() => { - window.location.reload() - }) + router.push({ path: '/', query: { tags: value } }) handleItemClick() } diff --git a/frontend_nuxt/pages/index.vue b/frontend_nuxt/pages/index.vue index b15658ddc..8b96bbeb4 100644 --- a/frontend_nuxt/pages/index.vue +++ b/frontend_nuxt/pages/index.vue @@ -113,18 +113,17 @@