H5使用location.href跳转到外部链接,然后点击返回的时候显示的是空白页,要刷新才可以显示原本的页面。
解决方案:

1
2
3
4
openLink(url) {
window.history.pushState(null,null,window.location.href);
window.location.replace(url)
},