Thank you. I thought of it as soon as it was released.
data: [
{
value: ""
children: [
{
value:"",
children: [
{value: ""}
]
},
{
value:"",
children: [
{value: ""}
]
},
]
}
]
how to determine whether there is a children array under the array, and then put the value in it into a new array?