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(() => { // 解析端口名称,将端口按槽位进行分组