mirror of
https://github.com/OpenListTeam/OpenList-Desktop.git
synced 2025-11-25 03:14:56 +08:00
fix: fix an issue that url can't be opened on macos #63
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user