diff --git a/src/stores/tcc-store.ts b/src/stores/tcc-store.ts index 29c2497..9bbbab9 100644 --- a/src/stores/tcc-store.ts +++ b/src/stores/tcc-store.ts @@ -78,13 +78,20 @@ export const useTccStore = defineStore('tcc', { position = 2; break; } + let controlType = + request.TrainControl.TrainControlType.DIRECTION_KEY_SWITCH; + if (tccKeyDir.datas.code == 'MMS') { + controlType = + request.TrainControl.TrainControlType.TRAIN_DOOR_MODE_CHANGE; + } + const simulationId = useLineStore().simulationId; if (!simulationId) return; tccOperation({ simulationId, trainId: this.tccId + '', deviceId: this.tccKeyDirId, - controlType: request.TrainControl.TrainControlType.DIRECTION_KEY_SWITCH, + controlType, switchKey: { val: position, },