iptv导入json时bug修复

This commit is contained in:
buvta
2020-11-20 15:00:00 +08:00
parent de8c51918f
commit 525da05c5f

View File

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