|
@@ -28,7 +28,7 @@ router.beforeEach(async(to, from, next) => {
|
|
}
|
|
}
|
|
if (to.path === '/login') {
|
|
if (to.path === '/login') {
|
|
// 在登录状态下访问login页面,直接跳转到首页
|
|
// 在登录状态下访问login页面,直接跳转到首页
|
|
- next('/supplier')
|
|
|
|
|
|
+ next()
|
|
} else {
|
|
} else {
|
|
// 加载国家列表
|
|
// 加载国家列表
|
|
store.dispatch('app/setCountry')
|
|
store.dispatch('app/setCountry')
|
|
@@ -66,7 +66,7 @@ router.beforeEach(async(to, from, next) => {
|
|
// other pages that do not have permission to access are redirected to the login page.
|
|
// other pages that do not have permission to access are redirected to the login page.
|
|
next(`/login`)
|
|
next(`/login`)
|
|
|
|
|
|
- // Message({ message: '登录失效,请重新登录!' })
|
|
|
|
|
|
+ Message({ message: '登录失效,请重新登录!' })
|
|
// router.replace('/login')
|
|
// router.replace('/login')
|
|
return
|
|
return
|
|
}
|
|
}
|