浏览代码

修改登陆逻辑

wyling007 3 年之前
父节点
当前提交
f9c2525c7f
共有 1 个文件被更改,包括 0 次插入3 次删除
  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();