|
@@ -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();
|