diff --git a/QMPlusVuePage/src/store/module/user.js b/QMPlusVuePage/src/store/module/user.js index 034bb2aef..fc3678d8f 100644 --- a/QMPlusVuePage/src/store/module/user.js +++ b/QMPlusVuePage/src/store/module/user.js @@ -30,7 +30,7 @@ export const user = { state.userInfo = {} state.token = "" state.expiresAt = "" - router.push({ name: 'login' }) + router.push({ name: 'login', replace: true }) } }, @@ -46,7 +46,7 @@ export const user = { if (redirect) { router.push({ path: redirect, replace: true }) } else { - router.push({ name: 'dashboard', replace: true }) + router.push({ path: '/layout/dashbord', replace: true }) } } } catch (err) { diff --git a/QMPlusVuePage/src/view/dashbord/index.vue b/QMPlusVuePage/src/view/dashbord/index.vue index 607a062a6..33e89b6f5 100644 --- a/QMPlusVuePage/src/view/dashbord/index.vue +++ b/QMPlusVuePage/src/view/dashbord/index.vue @@ -10,7 +10,7 @@