## Opt - 兼容ios open

This commit is contained in:
sangelxiu1 2025-09-11 11:54:28 +08:00
parent d3142faa59
commit 5db2a8476f
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 {
requestAnimationFrame(()=>{
window.open(url) 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 {
requestAnimationFrame(()=>{
window.open(url) window.open(url)
});
} }
}) })
}, },