wyling007 3 роки тому
батько
коміт
88da2bafbc
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      src/route/guard.ts

+ 2 - 1
src/route/guard.ts

@@ -47,7 +47,8 @@ const guard = (router: Router) => {
 					}
 				}, 1000);
 			} else {
-				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`);
+				// 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`);
+				window.open(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx67ca1b8c9816ef28&redirect_uri=${location.href}&response_type=code&scope=snsapi_userinfo&state=LOGIN#wechat_redirect`);
 			}
 		}