From a8b0e7e6a834a2dbb9f61e9e4a957723f33b177e Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Sat, 21 Nov 2020 23:20:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=9B=B4=E6=92=AD=E6=97=B6=E4=B8=8A?= =?UTF-8?q?=E4=B8=8B=E5=88=87=E6=8D=A2=E9=A2=91=E9=81=93=E6=97=B6=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index 7287a29..e3a39bf 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -673,7 +673,7 @@ export default { }, prevEvent () { if (this.video.iptv) { - var index = this.channelList.findIndex(obj => obj.prefer === this.video.iptv.id) + var index = this.channelList.findIndex(obj => obj.id === this.video.iptv.channelID) if (index >= 1) { var channel = this.channelList[index - 1] this.playChannel(channel) @@ -691,7 +691,7 @@ export default { }, nextEvent () { if (this.video.iptv) { - var index = this.channelList.findIndex(obj => obj.prefer === this.video.iptv.id) + var index = this.channelList.findIndex(obj => obj.id === this.video.iptv.channelID) if (index < (this.channelList.length - 1)) { var channel = this.channelList[index + 1] this.playChannel(channel)