diff --git a/apps/vben5/packages/@abp/identity/src/components/organization-units/OrganizationUnitTree.vue b/apps/vben5/packages/@abp/identity/src/components/organization-units/OrganizationUnitTree.vue index 40afe9801..9dd8a554c 100644 --- a/apps/vben5/packages/@abp/identity/src/components/organization-units/OrganizationUnitTree.vue +++ b/apps/vben5/packages/@abp/identity/src/components/organization-units/OrganizationUnitTree.vue @@ -49,14 +49,12 @@ const actionsMap: ContextMenuActionMap = { }; const organizationUnits = ref([]); -const expandedKeys = ref([]); const loadedKeys = ref([]); const selectedKey = ref(); /** 刷新组织机构树 */ async function onRefresh() { loadedKeys.value = []; - expandedKeys.value = []; const { items } = await getRootListApi(); organizationUnits.value = items.map((item) => { return { @@ -82,7 +80,6 @@ async function onLoad(node: EventDataNode) { }; }); organizationUnits.value = [...organizationUnits.value]; - expandedKeys.value.push(nodeKey); loadedKeys.value.push(nodeKey); } @@ -162,7 +159,6 @@ watchEffect(() => {