From 907252c040963889dc0f048f9a530e3188c5e996 Mon Sep 17 00:00:00 2001 From: colin Date: Thu, 5 Dec 2024 18:28:20 +0800 Subject: [PATCH] fix(vben5-identity): remove the organization expanded keys --- .../components/organization-units/OrganizationUnitTree.vue | 4 ---- 1 file changed, 4 deletions(-) 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(() => {