重定向至微信授权链接,无法在页面栈中去除微信授权的历史记录,入口页通过左滑或者右滑上一页会重新进入微信授权登录, 然后无限循环, 期望是直接退出h5, 通过左上角的关闭icon则可以关闭
var url = "".concat("https://open.weixin.qq.com/connect/oauth2/authorize?", "appid=")
.concat(appid, "&redirect_uri=")
.concat(encodeURIComponent(e), "&")
.concat("response_type=code", "&")
.concat("scope=snsapi_userinfo&state=wx#wechat_redirect");
window.location.href = url
链接:http://yx.file.dtbird.cn/yingxiao-miniSite-dev/wx501021189112594432.html?userId=353&siteId=1911