整合登录 首次登陆白页问题修复

This commit is contained in:
pixel
2019-10-10 22:44:01 +08:00
parent 2f99b7c865
commit 7f3cf59791
3 changed files with 40 additions and 12 deletions
+2 -2
View File
@@ -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) {