## Opt - 兼容ios open

This commit is contained in:
sangelxiu1 2025-09-11 11:54:28 +08:00
parent 22ad7a49bf
commit d5bdd43252
2 changed files with 6 additions and 2 deletions

View File

@ -566,7 +566,9 @@ export default {
if (navigator.userAgent.includes('MicroMessenger')) { if (navigator.userAgent.includes('MicroMessenger')) {
window.location.href = url window.location.href = url
} else { } else {
window.open(url) requestAnimationFrame(()=>{
window.open(url)
});
} }
}) })
}, },

View File

@ -1277,7 +1277,9 @@ export default {
if (navigator.userAgent.includes('MicroMessenger')) { if (navigator.userAgent.includes('MicroMessenger')) {
window.location.href = url window.location.href = url
} else { } else {
window.open(url) requestAnimationFrame(()=>{
window.open(url)
});
} }
}) })
}, },