fix: 修正交换机端口卡片显示条件,仅在端口非空时展示
This commit is contained in:
@@ -33,7 +33,7 @@ const { hasPermission } = usePermission();
|
|||||||
|
|
||||||
const { ndmDevice, station, ports } = toRefs(props);
|
const { ndmDevice, station, ports } = toRefs(props);
|
||||||
|
|
||||||
const showCard = computed(() => !!ports.value);
|
const showCard = computed(() => !!ports.value && ports.value.length > 0);
|
||||||
|
|
||||||
const switchSlots = computed(() => {
|
const switchSlots = computed(() => {
|
||||||
// 解析端口名称,将端口按槽位进行分组
|
// 解析端口名称,将端口按槽位进行分组
|
||||||
|
|||||||
Reference in New Issue
Block a user