1.官方文档 获取访问用户身份 - 接口文档 - 企业微信开发者中心 构造网页授权链接 - 接口文档 - 企业微信开发者中心官方文档 获取访问用户身份 - 接口文档 - 企业微信开发者中心
记录接入流程
1.首页url附带appid&agentid ,前端获取参数后请求先后端接口startAuth?appid='+ this.appid + '&agentid='+ this.agentid + '&state='+ this.state,(后端保存对应信息);
2.前端请求微信授权接口
redirectUrl 微信授权后跳转的url 可以设置为当前首页url
const redirectUrl = encodeURIComponent(document.location.origin + document.location.pathname + '#/');
oauth2Url = "https://open.weixin.qq.com/connect/oauth2/a