Browse Source

三方登陆

canghailong 5 months ago
parent
commit
5fc7df11b5
1 changed files with 2 additions and 0 deletions
  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的时候才保存登录之前要访问的页面