sunChengjie 11 months ago
parent
commit
49a1a2a24a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main.js

+ 1 - 1
src/main.js

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