fix(security-box-info-card): access status
This commit is contained in:
@@ -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 ? '打开' : '关闭';
|
||||
|
||||
Reference in New Issue
Block a user