根据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
posted on 2023-02-21 17:25  仔仔爱学习  阅读(84)  评论(0编辑  收藏  举报