|
@@ -55,6 +55,7 @@ router.beforeEach((to, from, next) => {
|
|
}
|
|
}
|
|
if (to.path !== '/') {
|
|
if (to.path !== '/') {
|
|
if (localStorage.getItem('accessToken') === null) {
|
|
if (localStorage.getItem('accessToken') === null) {
|
|
|
|
+ // if (localStorage.getItem('userInfo') === null) {
|
|
|
|
|
|
// 本地存储的accessToken不存在时,跳转至后台登录页
|
|
// 本地存储的accessToken不存在时,跳转至后台登录页
|
|
// alert('本地存储的accessToken不存在')
|
|
// alert('本地存储的accessToken不存在')
|