From 3a23d4b4b3a55b697d15b05580653929bcf50ce4 Mon Sep 17 00:00:00 2001 From: Rogee Date: Thu, 15 May 2025 10:03:59 +0800 Subject: [PATCH] feat: route jump --- frontend/wechat/src/layouts/MainLayout.vue | 14 +++++--------- frontend/wechat/stats.html | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/frontend/wechat/src/layouts/MainLayout.vue b/frontend/wechat/src/layouts/MainLayout.vue index 5bc0816..a400741 100644 --- a/frontend/wechat/src/layouts/MainLayout.vue +++ b/frontend/wechat/src/layouts/MainLayout.vue @@ -14,7 +14,7 @@ const tabs = [ const switchTab = (index, route) => { activeTab.value = index - router.push(route) + router.replace(route) } @@ -30,17 +30,13 @@ const switchTab = (index, route) => {