canghailong hai 5 meses
pai
achega
5fc7df11b5
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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的时候才保存登录之前要访问的页面