fix: 修正交换机端口卡片显示条件,仅在端口非空时展示

This commit is contained in:
yangsy
2026-05-17 22:51:03 +08:00
parent 2b7b4e7bd9
commit c03667b312
@@ -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(() => {
// 解析端口名称,将端口按槽位进行分组