文章分类 -  vue2.0+element-ui

摘要:树形结构转化为平铺 // 正向-树形结构转平铺 // 从外到内依次递归,有 children 则继续递归 function treeToArr(data, pid=null, res=[]) { data.forEach(item => { res.push({ pid: pid, id: item 阅读全文
posted @ 2021-12-03 14:14 王依一 阅读(240) 评论(0) 推荐(0)