From 3fdf401c11333f921563e0c23d2740446ec6bf30 Mon Sep 17 00:00:00 2001 From: Net Date: Mon, 26 Aug 2024 11:05:00 +0700 Subject: [PATCH] refactor: add status in children tree --- src/pages/04_product-service/MainPage.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index c3bb8482..048798f2 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -193,7 +193,7 @@ const treeProductTypeAndGroup = computed( actionDisabled: item.status === 'INACTIVE', type: 'type', })) ?? item._count.type > 0) - ? [{ id: '', name: '' }] + ? [{ id: '', name: '', actionDisabled: item.status === 'INACTIVE' }] : [], })) ?? [], ); @@ -1398,7 +1398,6 @@ watch( }); currentStatusList.value.splice(1); - expandedTree.value.pop(); utilsStore.currentTitle.path.pop(); }