From 96d6e470f8ca05aeb2f8e87c25f6c435e539f952 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Mon, 11 Nov 2024 17:09:45 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=A5=E0=B9=89?= =?UTF-8?q?=E0=B8=B2=E0=B8=87=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9?= =?UTF-8?q?=E0=B8=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/02_organization/components/TreeView.vue | 1 + src/modules/02_organization/views/main.vue | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) 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()" - >