From 5496de95b3a3ec7d7c8d2fef820e0b2c395f7b53 Mon Sep 17 00:00:00 2001 From: haozq <1611483981@qq.com> Date: Tue, 28 Oct 2025 18:14:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E7=BD=B2=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Navbar.vue | 2 +- src/router/index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 250961a..d34212c 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -120,7 +120,7 @@ type: 'warning' }).then(() => { this.$store.dispatch('LogOut').then(() => { - location.href = '/index'; + location.href = '/ldlz/index'; }) }).catch(() => {}); }, diff --git a/src/router/index.js b/src/router/index.js index 488dc61..f198674 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -219,6 +219,7 @@ Router.prototype.replace = function push(location) { } export default new Router({ + base:'ldlz', mode: 'history', // 去掉url中的# scrollBehavior: () => ({ y: 0 }), routes: constantRoutes