fix(security-box-info-card): access status

This commit is contained in:
yangsy
2025-12-01 11:30:08 +08:00
parent de723dce00
commit f7d1d2d44c

View File

@@ -20,7 +20,7 @@ const cardShow = computed(() => {
// 门禁状态 (switches[0]: 0=关闭/失效, 1=打开/生效)
const accessControlStatus = computed(() => {
if (!switches?.value || switches.value.length === 0) return null;
return switches.value[0] === 1 ? '打开' : '关闭';
return switches.value[0] === 0 ? '打开' : '关闭';
});
// 防雷状态 (switches[1]: 0=关闭/失效, 1=打开/生效)