Forráskód Böngészése

修改登陆逻辑

wyling007 3 éve
szülő
commit
f9c2525c7f
1 módosított fájl, 0 hozzáadás és 3 törlés
  1. 0 3
      src/route/guard.ts

+ 0 - 3
src/route/guard.ts

@@ -37,10 +37,7 @@ const guard = (router: Router) => {
 					location.replace(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx67ca1b8c9816ef28&redirect_uri=https://jpcj-h5.zzxcx.net/home/test&response_type=code&scope=snsapi_userinfo&state=LOGIN#wechat_redirect`);
 				}, 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`);
 		}
-
 		//检测token状态,token失效直接跳转至登陆链接
 		try {
 			const authTest = await userInfo();