修复第一次跳转白屏
This commit is contained in:
parent
38bab91fff
commit
98f04de56b
|
@ -18,7 +18,7 @@ router.beforeEach(async(to, from, next) => {
|
|||
// 在白名单中的判断情况
|
||||
if (whiteList.indexOf(to.name) > -1) {
|
||||
if (token) {
|
||||
next({ name: 'dashbord' })
|
||||
next({ path: '/layout/dashbord' })
|
||||
} else {
|
||||
next()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue