修改控制回显
This commit is contained in:
parent
1eb94aed9b
commit
226b788afc
@ -12,7 +12,7 @@ const inputStates = computed(() => {
|
|||||||
}
|
}
|
||||||
return Array.from({ length: 12 }, (_, i) => {
|
return Array.from({ length: 12 }, (_, i) => {
|
||||||
const key = `di${i + 1}`
|
const key = `di${i + 1}`
|
||||||
return state.realtime!.switch[key] === 1
|
return state.realtime!.switch[key] === 1 ? 1 : 0
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ const outputStates = computed(() => {
|
|||||||
}
|
}
|
||||||
return Array.from({ length: 12 }, (_, i) => {
|
return Array.from({ length: 12 }, (_, i) => {
|
||||||
const key = `do${i + 1}`
|
const key = `do${i + 1}`
|
||||||
return state.realtime!.switch[key] === 1
|
return state.realtime!.switch[key] === 1 ? 1 : 0
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
function formatTime(dateStr: string): string {
|
function formatTime(dateStr: string): string {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user