[{
id: 1,
label: " 1",
children: [{
id: 4,
label: " 1-1",
children: [{
id: 9,
label: " 1-1-1"
}, {
id: 10,
label: " 1-1-2"
}]
}]
}, {
id: 2,
label: " 2",
children: [{
id: 5,
label: " 2-1"
}, {
id: 6,
label: " 2-2"
}]
}]
how do three-level menu data nesting fetch all id push into an array