在微信浏览器中访问 https://域名/项目地址/#/pagesComm/download/download?type=wdysj&from=other
刷新后复制的是https://域名/项目地址/#/
猜想是地址相同触发了bug
解决方法就是跳转的redirecturl 加一个时间戳
下面仅作示例
let redirectOrg = undefined
if (Weixin.isWeiXin() && redirect[0] === '/') {
redirectOrg = redirect
redirect = ab_.urlRm(redirect, "_w_n");
redirect = redirect + (redirect.indexOf('?') >= 0 ? '&_w_n=' : '?_w_n=') + new Date().getTime()
}
// #endif
// abUni.redirectTo({
// url: redirect[0] === "/" ? redirect : "/" + redirect,
// });
launcher.redirected = true;
Page.navUri(redirect, undefined, false, 2, false, () => {
if (redirectOrg) {
history.replaceState(null, null, location.pathname + location.search + '#' + redirectOrg)
}
})