|
|
@ -79,8 +79,9 @@ function StuffMgm(props) { |
|
|
|
let last = options[options.length - 1]; |
|
|
|
if (last.children) { |
|
|
|
addChild(last, res); |
|
|
|
} |
|
|
|
res.push(last.id); |
|
|
|
} else { |
|
|
|
res = [last.id] |
|
|
|
} |
|
|
|
} |
|
|
|
setGetOption(res) |
|
|
|
setFormData({ ...formData, region_id: value }) |
|
|
@ -363,6 +364,7 @@ function StuffMgm(props) { |
|
|
|
] |
|
|
|
const addChild = (child, res) => { |
|
|
|
if (child.children) { |
|
|
|
res.push(child.id) |
|
|
|
child.children.forEach((item) => { |
|
|
|
addChild(item, res); |
|
|
|
}); |
|
|
|