mounted(){
let ua = navigator.userAgent;
let isIOS = !!ua.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
let isInWeixin = /micromessenger/.test(ua.toLowerCase());
if (isIOS && isInWeixin) {
window.onpageshow = function (event) {
if (event.persisted) {
window.location.reload();
}
};
}
}
网友评论