소스 검색

三方登陆

canghailong 5 달 전
부모
커밋
5fc7df11b5
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/router/index.js

+ 2 - 0
src/router/index.js

@@ -82,6 +82,8 @@ router.beforeEach(async (to, from, next) => {
 	} else {
 		if (to.query.userId) {
 			afterLogin({ userId: to.query.userId })
+			next()
+			return false
 		}
 		if (token) {
 			// 有token的时候才保存登录之前要访问的页面