https://www.cnblogs.com/cassiel/p/7794599.html
jsexport const payWeiXinCompatibleMixin = {
beforeCreate () {
if (this.$route.query.reload) return
let { isIOS, isWechat } = this.$sdk
if (isIOS && isWechat) {
let href = location.href
href += `${href.indexOf('?') === -1 ? '?' : '&'}reload=true`
location.replace(href)
location.reload()
}
}
}
本文作者:BARM
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!