新建列车报错调整

This commit is contained in:
fan 2021-07-16 10:50:33 +08:00
parent bf9684e6af
commit 70546bbfb1

View File

@ -59,7 +59,7 @@ class EMouse extends Group {
}
const physicalSection = store.getters['map/getDeviceByCode'](this.device.model.model.physicalCode);
let closeDoorTip = '';
if (physicalSection.standTrack) {
if (physicalSection && physicalSection.standTrack) {
const stationStand = store.state.map.map.stationStandList.find(item => item.standTrackCode === physicalSection.code);
if ((stationStand.right && this.device.model.right) || (!stationStand.right && !this.device.model.right)) {
if (stationStand.inside) {