Ver código fonte

三方登陆

canghailong 5 meses atrás
pai
commit
5fc7df11b5
1 arquivos alterados com 2 adições e 0 exclusões
  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的时候才保存登录之前要访问的页面