diff --git a/src/pages/movement-supervision.vue b/src/pages/movement-supervision.vue index cfb714c..df2bf65 100644 --- a/src/pages/movement-supervision.vue +++ b/src/pages/movement-supervision.vue @@ -334,7 +334,7 @@ const monitorScene = async () => { const data = JSON.parse(e.data || '{}'); // 判断数据类型:type=99为自动门点,其他为机器人 - if (data.type === 99) { + if (data.type === 101) { // 自动门点数据处理 autoDoorSimulationService.handleWebSocketData(data as AutoDoorWebSocketData); } else { @@ -396,7 +396,7 @@ const monitorScene = async () => { id: mockDeviceId, label: mockDeviceId, brand: null, - type: 99, + type: 101, ip: null, battery: 100, isConnected: mockIsConnected, diff --git a/src/services/auto-door-simulation.service.ts b/src/services/auto-door-simulation.service.ts index 2f50da4..fdfd199 100644 --- a/src/services/auto-door-simulation.service.ts +++ b/src/services/auto-door-simulation.service.ts @@ -55,7 +55,7 @@ interface AutoDoorStatusData { brand: null; - type: 99; // 自动门点类型标识 + type: 101; // 自动门点类型标识 ip: null; @@ -107,7 +107,7 @@ export interface AutoDoorWebSocketData { brand: null; - type: 99; // 自动门点类型标识 + type: 101; // 自动门点类型标识 ip: null; @@ -629,7 +629,7 @@ export class AutoDoorService { brand: null, - type: 99, + type: 101, ip: null,