zhuangyunsheng 1 년 전
부모
커밋
11e9f4d94f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/router/index.js

+ 1 - 1
src/router/index.js

@@ -51,7 +51,7 @@ router.beforeEach(async (to, from, next) => {
 	let token = tool.cookie.get("TOKEN");
 
 	if (to.path === "/redirect") {
-		if (!token) {
+		if (to.query.userId) {
 			const { token, user } = await api.auth.oa.getUserToken(to.query);
 			tool.cookie.set("TOKEN", token);
 			tool.data.set("USER_INFO", user.user);