mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
fix safari window.open
This commit is contained in:
@@ -425,12 +425,9 @@ async function handlePlay() {
|
|||||||
)
|
)
|
||||||
if (result?.success) {
|
if (result?.success) {
|
||||||
// 打开链接地址
|
// 打开链接地址
|
||||||
const a = document.createElement('a')
|
setTimeout(() => {
|
||||||
a.href = result.data?.url
|
window.open(result.data.url, '_blank')
|
||||||
a.target = '_blank'
|
}, 500)
|
||||||
document.body.appendChild(a)
|
|
||||||
a.click()
|
|
||||||
a.remove()
|
|
||||||
}
|
}
|
||||||
else { $toast.error(`获取播放链接失败:${result.message}!`) }
|
else { $toast.error(`获取播放链接失败:${result.message}!`) }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user