添加提示,避免调用解析接口响应慢时尴尬空白

This commit is contained in:
buvta
2020-12-30 19:32:55 +08:00
parent 205b9d7979
commit 88db766337

View File

@@ -632,6 +632,7 @@ export default {
if (playlist.every(e => e.split('$')[1].endsWith('.m3u8'))) this.exportablePlaylist = true
if (!url.endsWith('.m3u8') && !url.endsWith('.mp4')) {
const currentSite = await sites.find({ key: this.video.key })
this.$message.info('即将调用解析接口播放,请等待...')
if (currentSite.jiexiUrl) {
this.onlineUrl = currentSite.jiexiUrl + url
} else {