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')