mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-17 23:06:47 +08:00
fix bug
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
:load-data="onLoadData"
|
:load-data="onLoadData"
|
||||||
:tree-data="options"
|
:tree-data="options"
|
||||||
:fieldNames="{
|
:fieldNames="{
|
||||||
children: 'treeChildList',
|
children: 'directChildList',
|
||||||
label: 'name',
|
label: 'name',
|
||||||
value: 'id',
|
value: 'id',
|
||||||
}"
|
}"
|
||||||
@@ -68,7 +68,7 @@ watch(props, () => {
|
|||||||
function onLoadData(treeNode) {
|
function onLoadData(treeNode) {
|
||||||
return useArrayRequest(ORG_CHILD_LIST, { keyword: "", orgId: treeNode.id }).then(
|
return useArrayRequest(ORG_CHILD_LIST, { keyword: "", orgId: treeNode.id }).then(
|
||||||
(r) => {
|
(r) => {
|
||||||
treeNode.dataRef.treeChildList = r.data;
|
treeNode.dataRef.directChildList = r.data;
|
||||||
options.value = [...options.value];
|
options.value = [...options.value];
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user