播放器初始状态点播放,历史记录为空时直接停止重置

This commit is contained in:
buvta
2020-12-13 22:24:19 +08:00
parent f041093fe9
commit e616aa5e2a

View File

@@ -1406,6 +1406,10 @@ export default {
if (!this.video.key) {
if (!this.video.iptv && !this.video.info.ids) {
// 如果当前播放页面的播放信息没有被赋值,播放历史记录
if (this.right.history.length === 0) {
this.videoStop()
return
}
var historyItem = this.right.history[0]
this.video = { key: historyItem.site, info: { id: historyItem.ids, name: historyItem.name, index: historyItem.index } }
this.getUrls()