From a34cab5272f599e5ba2b89e7b0bd8c6a087b2258 Mon Sep 17 00:00:00 2001 From: liruiqiang <3151805288@qq.com> Date: Wed, 19 Nov 2025 10:25:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E4=B8=8E=E4=BE=A7=E8=BE=B9=E6=A0=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/Layout.vue | 74 ++++++++++++++++++++++++++++++++++++++++++++++++--- src/router/index.js | 5 ---- 2 files changed, 70 insertions(+), 9 deletions(-) diff --git a/src/layout/Layout.vue b/src/layout/Layout.vue index 71a08af..9a24be7 100644 --- a/src/layout/Layout.vue +++ b/src/layout/Layout.vue @@ -15,7 +15,7 @@ class="sidebar-menu" background-color="transparent" router - :default-active="currentRoutePath" + :default-active="lastActivePath" :unique-opened="true" > + + @@ -54,8 +59,9 @@ \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 7060ba4..3548ed0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -81,11 +81,6 @@ const router = createRouter({ // 全局前置守卫 router.beforeEach((to, from, next) => { - // 设置页面标题 - if (to.meta.title) { - document.title = to.meta.title - } - // 登录状态判断 const token = localStorage.getItem('token')