wyling007 3 년 전
부모
커밋
f7a3c8a18c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/route/guard.ts

+ 1 - 0
src/route/guard.ts

@@ -36,6 +36,7 @@ const guard = (router: Router) => {
 		if (store.getters.getToken === "") {
 			if (to.path === "/marked") {
 				next();
+				return;
 			}
 			location.replace(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx67ca1b8c9816ef28&redirect_uri=${location.href}&response_type=code&scope=snsapi_userinfo&state=LOGIN#wechat_redirect`);
 		} else {