let arr = [
] {
a: 1,
b: 2,
c: 3,
children: [
{
id: 1,
a: 1-1,
b: 1-2,
c: 1-3,
}
]
},
{
a: 2-1,
b: 2-2,
c: 2-3,
children: []
}
]
to change the data format to
key
function getData (arr) {
arr.forEach((item, index) => {
})
return brr
}
getData(arr)
childrenchildrenkey