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) } })