From 098a315153caaf5552827acb1edd8037871d6ed6 Mon Sep 17 00:00:00 2001 From: yangsy Date: Wed, 12 Nov 2025 15:37:53 +0800 Subject: [PATCH] fix(device-common-card): render condition --- .../device-card/current-diag-card/device-common-card.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/device-page/device-card/current-diag-card/device-common-card.vue b/src/components/device-page/device-card/current-diag-card/device-common-card.vue index 2eb98e1..1c69b81 100644 --- a/src/components/device-page/device-card/current-diag-card/device-common-card.vue +++ b/src/components/device-page/device-card/current-diag-card/device-common-card.vue @@ -8,11 +8,13 @@ const props = defineProps<{ const { commonInfo } = toRefs(props); +const cardShow = computed(() => !!commonInfo.value && Object.keys(commonInfo.value).length > 0); + const commonInfoEntries = computed(() => Object.entries(commonInfo.value ?? {}));