|
@@ -64,7 +64,7 @@ router.beforeEach((to, from, next) => {
|
|
//登录判断
|
|
//登录判断
|
|
if (!localStorage.getItem('userId')) { // 判断当前用户的登录信息userId是否存在
|
|
if (!localStorage.getItem('userId')) { // 判断当前用户的登录信息userId是否存在
|
|
console.log('无userId')
|
|
console.log('无userId')
|
|
- next('/login')
|
|
|
|
|
|
+ next('/Login')
|
|
} else if (!localStorage.getItem('openid')) {
|
|
} else if (!localStorage.getItem('openid')) {
|
|
console.log('无openId')
|
|
console.log('无openId')
|
|
overallExample.getOpenid()
|
|
overallExample.getOpenid()
|