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[]