feat(elevator): 将电梯楼层属性名从currentFloor统一改为elevatorFloor以匹配后端数据字段

This commit is contained in:
xudan 2025-12-12 14:59:46 +08:00
parent e8eb344d76
commit bac228bb9d
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ const editor = inject(props.token)!;
// / // /
const pointsTick = computed<string>(() => const pointsTick = computed<string>(() =>
editor.value.points.value editor.value.points.value
.map((v: any) => `${v.id}:${v?.point?.isConnected ?? ''}:${v?.point?.elevatorDirection ?? ''}:${v?.point?.elevatorFrontDoorStatus ?? ''}:${v?.point?.currentFloor ?? ''}`) .map((v: any) => `${v.id}:${v?.point?.isConnected ?? ''}:${v?.point?.elevatorDirection ?? ''}:${v?.point?.elevatorFrontDoorStatus ?? ''}:${v?.point?.elevatorFloor ?? ''}`)
.join('|'), .join('|'),
); );
@ -214,7 +214,7 @@ const elevatorCurrentFloor = computed(() => {
void pointsTick.value; void pointsTick.value;
const pen = editor.value.getPenById(props.current); const pen = editor.value.getPenById(props.current);
return pen?.point?.currentFloor; return pen?.point?.elevatorFloor;
}); });
// //

View File

@ -291,4 +291,4 @@ export const useElevatorStore = defineStore('elevator', () => {
handleElevatorWebSocketData, handleElevatorWebSocketData,
refreshMapping refreshMapping
}; };
}); });