diff --git a/src/modules/02_organization/components/TreeView.vue b/src/modules/02_organization/components/TreeView.vue index e0ab8ffd0..0382e34a3 100644 --- a/src/modules/02_organization/components/TreeView.vue +++ b/src/modules/02_organization/components/TreeView.vue @@ -203,6 +203,7 @@ watch( watch( () => store.typeOrganizational, () => { + nodeTree.value = []; const id = store.typeOrganizational === "current" ? store.activeId : store.draftId; id && store.typeOrganizational !== "old" && fetchDataTree(id); diff --git a/src/modules/02_organization/views/main.vue b/src/modules/02_organization/views/main.vue index e96ee380d..974fe7088 100644 --- a/src/modules/02_organization/views/main.vue +++ b/src/modules/02_organization/views/main.vue @@ -126,11 +126,6 @@ function onClickHistory(id: string, name: string) { count.value++; } -function oldCloseSelect(){ - if(!store.historyId){ - store.typeOrganizational = 'current' - } -} async function workflowSystem() { showLoader(); http @@ -285,8 +280,6 @@ onMounted(async () => { :label="labelHistory" @click="store.typeOrganizational = 'old'" :outline="store.typeOrganizational === 'old' ? false : true" - @hide="oldCloseSelect()" - >