From 0fe6cc515ec09e85c189cb593e2a1d89b99c9e1c Mon Sep 17 00:00:00 2001 From: Net Date: Fri, 19 Jul 2024 18:05:58 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=20tree?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/04_product-service/MainPage.vue | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index d876bcda..c1a042ec 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -157,9 +157,16 @@ const treeProductTypeAndGroup = computed(() => { type: 'type', })) ?? [] : recordTreeProductType.value[item.id]?.map((x) => ({ - ...x, - type: 'type', - })) ?? [], + ...x, + type: 'type', + })) ?? item._count.type > 0 + ? [ + { + id: '', + name: '', + }, + ] + : [], }; }) ?? []; @@ -3992,4 +3999,8 @@ watch( border-radius: var(--radius-2); padding-inline: var(--size-2); } + +* :deep(.q-icon.mdi-play) { + display: none; +}