2020年3月21日
摘要: 后端返回的数据是树形结构要实现这种类似平铺树的结构 基本思路:取出最后两级,取出每一级的所有祖先节点 // 只获取最后两级得数据 lastLevelData (data) { let that = this let arr = [] data = that._.cloneDeep(data) || 阅读全文
posted @ 2020-03-21 18:49 ihuangqing 阅读(3222) 评论(1) 推荐(0) 编辑