根据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
标签:删除,树结构,id,children,filterHandle,data,newData From: https://www.cnblogs.com/ch-zaizai/p/17141792.html