|
@@ -158,7 +158,7 @@ import { mqttInstants, InitMqtt } from '../../utils/mqtt'
|
|
|
|
|
|
const route = useRoute()
|
|
|
const ccmNo = route.params.ccmNo || '5'
|
|
|
-const positionNo = route.params.positionNo || '1'
|
|
|
+const positionNo = route.params.positionNo || '2'
|
|
|
|
|
|
const loading = ref(false)
|
|
|
const vehicleInfo = ref<VehicleInfo>({
|
|
@@ -405,7 +405,7 @@ const editInfo = (params: { licensePlate?: string; arriveNum?: string | number }
|
|
|
|
|
|
const onMessage = (msg: Record<string, string>) => {
|
|
|
const { car, position } = msg
|
|
|
- if (!car) return
|
|
|
+ if (!car || Number(positionNo) !== Number(position)) return
|
|
|
arriveNo.value = position
|
|
|
getVehicleInfo(car)
|
|
|
}
|