From bc675692d484bda4d48fe1c47587e2a869a80c57 Mon Sep 17 00:00:00 2001 From: zhangjiming Date: Sat, 11 Jan 2025 14:55:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=80=97=E6=9D=90=E4=B8=8A=E6=8A=A5?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Index/Regular/Consumables.vue | 4 ++-- src/websocket/socket.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/Index/Regular/Consumables.vue b/src/pages/Index/Regular/Consumables.vue index d084f6a..23785ec 100644 --- a/src/pages/Index/Regular/Consumables.vue +++ b/src/pages/Index/Regular/Consumables.vue @@ -303,7 +303,7 @@ onMounted(() => { startWebSocket() socket.subscribe('SensorState', handleSensorState) socket.subscribe( - 'ConsumablesStateService', + 'ConsumablesState', handleConsumablesState, ) // getEmergencyInfo() @@ -316,7 +316,7 @@ onBeforeUnmount(() => { } socket.unsubscribe('SensorState', handleSensorState) socket.unsubscribe( - 'ConsumablesStateService', + 'ConsumablesState', handleConsumablesState, ) }) diff --git a/src/websocket/socket.ts b/src/websocket/socket.ts index ace1a8e..6ab368b 100644 --- a/src/websocket/socket.ts +++ b/src/websocket/socket.ts @@ -199,7 +199,7 @@ interface TipInfo { interface ConsumablesStateMessage extends BaseMessage { type: 'ConsumablesState' messageType: 'Report' - dataType: 'ConsumablesStateService' + dataType: 'ConsumablesState' data: { scanDate: number tips: TipInfo[]