fix(security-box-info-card): access status
This commit is contained in:
@@ -20,7 +20,7 @@ const cardShow = computed(() => {
|
|||||||
// 门禁状态 (switches[0]: 0=关闭/失效, 1=打开/生效)
|
// 门禁状态 (switches[0]: 0=关闭/失效, 1=打开/生效)
|
||||||
const accessControlStatus = computed(() => {
|
const accessControlStatus = computed(() => {
|
||||||
if (!switches?.value || switches.value.length === 0) return null;
|
if (!switches?.value || switches.value.length === 0) return null;
|
||||||
return switches.value[0] === 1 ? '打开' : '关闭';
|
return switches.value[0] === 0 ? '打开' : '关闭';
|
||||||
});
|
});
|
||||||
|
|
||||||
// 防雷状态 (switches[1]: 0=关闭/失效, 1=打开/生效)
|
// 防雷状态 (switches[1]: 0=关闭/失效, 1=打开/生效)
|
||||||
|
|||||||
Reference in New Issue
Block a user