diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 073feb7..9f91ccd 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -103,7 +103,7 @@ export default { type: 'warning' }).then(() => { this.$store.dispatch('LogOut').then(() => { - location.href = process.env.VUE_APP_VITE_BASE_PATH + "/index"; + location.href = process.env.VUE_APP_VITE_BASE_PATH + "index"; }) }).catch(() => { }); diff --git a/src/utils/request.js b/src/utils/request.js index 3585ea9..0992e64 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -91,7 +91,7 @@ service.interceptors.response.use(res => { }).then(() => { isRelogin.show = false; store.dispatch('LogOut').then(() => { - location.href = process.env.VUE_APP_VITE_BASE_PATH + '/index'; + location.href = process.env.VUE_APP_VITE_BASE_PATH + 'index'; }) }).catch(() => { isRelogin.show = false;