router.afterEach(to => {
if (to.meta.title) {
document.title = to.meta.title;
// iOS
if (navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)) {
const _iframe= document.createElement("iframe");
_iframe.style.display = "none";
document.body.appendChild(_iframe);
setTimeout(() => {
document.body.removeChild(_iframe);
}, 300);
}
}
});