const redirectUrl = encodeURIComponent(window.location.href)
let login_url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${config.wxAppId}&redirect_uri=${redirectUrl}&connect_redirect=1&response_type=code&scope=snsapi_userinfo&state=LOGIN_H5#wechat_redirect`;
window.location.href = login_url
获取到的code换不到基础信息
{
"errcode": 40029,
"errmsg": "invalid code, rid: 640a8377-53631bb8-7f6c0244"
}
检查appid