const arr = this.allChannels.filter(channel => {
const idx = this.channels.findIndex(item => item.id === channel.id)
if (idx === -1) {
return true
}
})
return arr
或者
this.allChannels.filter((item) => !this.channels.some(index => index.id === item.id))