From 525da05c5f8ab6f6aad2e1ac5ebc2bc2c2a4748c Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Fri, 20 Nov 2020 15:00:00 +0800 Subject: [PATCH] =?UTF-8?q?iptv=E5=AF=BC=E5=85=A5json=E6=97=B6bug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/IPTV.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/IPTV.vue b/src/components/IPTV.vue index 4e698c4..ad4169d 100644 --- a/src/components/IPTV.vue +++ b/src/components/IPTV.vue @@ -379,8 +379,9 @@ export default { if (commonEle) { const urls = commonEle.channels.map(c => c.url) const channels = ele.channels.filter(e => !urls.includes(e.url)) - commonEle.channels.concat(channels) + commonEle.channels = commonEle.channels.concat(channels) } else { + ele.id = this.channelList.length ? this.channelList.slice(-1)[0].id + 1 : 1 this.channelList.push(ele) } })