sunChengjie před 1 rokem
rodič
revize
49a1a2a24a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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()