fix: fix an issue that url can't be opened on macos #63

This commit is contained in:
Kuingsmile
2025-07-22 13:26:43 +08:00
parent dc1cb41e61
commit 2eeba5f428
3 changed files with 9 additions and 3 deletions

View File

@@ -34,7 +34,9 @@ const openLink = async (url: string) => {
} catch (error) {
console.error('Failed to open link:', error)
}
window.open(url, '_blank')
setTimeout(() => {
window.open(url, '_blank')
})
}
</script>

View File

@@ -109,7 +109,9 @@ const openLink = async (url: string) => {
} catch (error) {
console.error('Failed to open link:', error)
}
window.open(url, '_blank')
setTimeout(() => {
window.open(url, '_blank')
})
}
</script>

View File

@@ -435,7 +435,9 @@ const openLink = async (url: string) => {
} catch (error) {
console.error('Failed to open link:', error)
}
window.open(url, '_blank')
setTimeout(() => {
window.open(url, '_blank')
})
}
onMounted(async () => {