From 226b788afc3cb586a9a1d6a45f58a89d94683be4 Mon Sep 17 00:00:00 2001 From: jingna <1264204245@qq.com> Date: Fri, 26 Jun 2026 13:55:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A7=E5=88=B6=E5=9B=9E?= =?UTF-8?q?=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/switchQuantity/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/switchQuantity/index.vue b/frontend/src/views/switchQuantity/index.vue index 9f7ac2e..5f9fc27 100644 --- a/frontend/src/views/switchQuantity/index.vue +++ b/frontend/src/views/switchQuantity/index.vue @@ -12,7 +12,7 @@ const inputStates = computed(() => { } return Array.from({ length: 12 }, (_, i) => { 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) => { const key = `do${i + 1}` - return state.realtime!.switch[key] === 1 + return state.realtime!.switch[key] === 1 ? 1 : 0 }) }) function formatTime(dateStr: string): string {