wyling007 vor 3 Jahren
Ursprung
Commit
f7a3c8a18c
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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 {