sunChengjie 1 年之前
父节点
当前提交
49a1a2a24a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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()