最近在写:在微信内置浏览器跳转,发现跳转失败问题
解决方法:在url中的#前加上时间戳即可
let url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxcc12345456cac3&redirect_uri=http://aaa.bbb.edu.cn/api/source/wechat/finish&response_type=code&scope=snsapi_base&state=12345#wechat_redirect'
let curUrl = url.replace(/#/g, `&v=${new Date().getTime()}#`);
window.location.href = curUrl;