fix safari window.open

This commit is contained in:
jxxghp
2024-01-04 08:12:32 +08:00
parent fb976f043b
commit 165937596e

View File

@@ -425,12 +425,9 @@ async function handlePlay() {
)
if (result?.success) {
// 打开链接地址
const a = document.createElement('a')
a.href = result.data?.url
a.target = '_blank'
document.body.appendChild(a)
a.click()
a.remove()
setTimeout(() => {
window.open(result.data.url, '_blank')
}, 500)
}
else { $toast.error(`获取播放链接失败:${result.message}`) }
}