fix: แก้ tree

This commit is contained in:
Net 2024-07-19 18:05:58 +07:00
parent f23916b2ea
commit 0fe6cc515e

View file

@ -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;
}
</style>