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

This commit is contained in:
yangsy
2025-12-07 11:05:44 +08:00
parent 8e9bd75067
commit c189f79aa4

View File

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