problem description
The data data structure of theexample is
options: [{
value: "zhinan",
label: "",
children: [{
value: "shejiyuanze",
label: "",
children: [{
value: "yizhi",
label: ""
}, {
data() {
return {
data2: [{
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"
}]
the environmental background of the problems and what methods you have tried
something goes wrong if you change the name to another name
related codes
/ / Please paste the code text below (do not replace the code with pictures)