canghailong 5 mesi fa
parent
commit
5fc7df11b5
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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的时候才保存登录之前要访问的页面