From c03667b312a55c1cd372b103f595a28fb35847fb Mon Sep 17 00:00:00 2001 From: yangsy Date: Sun, 17 May 2026 22:51:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E4=BA=A4=E6=8D=A2?= =?UTF-8?q?=E6=9C=BA=E7=AB=AF=E5=8F=A3=E5=8D=A1=E7=89=87=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=EF=BC=8C=E4=BB=85=E5=9C=A8=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?=E9=9D=9E=E7=A9=BA=E6=97=B6=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../device-card/components/current-diag/switch-port-card.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/device/device-card/components/current-diag/switch-port-card.vue b/src/components/device/device-card/components/current-diag/switch-port-card.vue index 2c13903..43cf390 100644 --- a/src/components/device/device-card/components/current-diag/switch-port-card.vue +++ b/src/components/device/device-card/components/current-diag/switch-port-card.vue @@ -33,7 +33,7 @@ const { hasPermission } = usePermission(); const { ndmDevice, station, ports } = toRefs(props); -const showCard = computed(() => !!ports.value); +const showCard = computed(() => !!ports.value && ports.value.length > 0); const switchSlots = computed(() => { // 解析端口名称,将端口按槽位进行分组