mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-05 16:03:29 +08:00
播放器初始状态点播放,历史记录为空时直接停止重置
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user