根据id 删除树结构中的数据
filterHandle(data, id) {
var newData = data.filter(x => x.key !== id)
newData.forEach(x => x.children && (x.children = this.filterHandle(x.children, id)))
return newData
},
转自:https://blog.csdn.net/weixin_57229715/article/details/123739269