授权后左右测换怎么返回主界面?
提问
window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + config.appId +
"&redirect_uri=" + url + "&response_type=code&scope=snsapi_privateinfo&state=12345&agentid=" + config
.agentId +
"#wechat_redirect"
let param = this.GetRequest()
let code = param['code'] //把code 传给后端即可获取用户信息
return code
获取code后 手机左右测换不能退出页面 返回主界面
您好,获取到code后,消费code再重定向到需要跳转的页面即可