修改报错问题

This commit is contained in:
dong 2022-12-29 15:21:50 +08:00
parent 61fdf8eb31
commit a4ccf0c678

View File

@ -43,6 +43,7 @@ export default {
if (elem && (elem.hasOwnProperty('success') || elem.hasOwnProperty('timeout'))) {
const operate = this.$store.state.training.operate;
const control = this.$store.getters['map/getDeviceByCode'](elem.stationControlCode);
if (control && control.stationCode) {
const station = this.$store.getters['map/getDeviceByCode'](control.stationCode);
const newOperate = {
type: operate.type,
@ -58,6 +59,7 @@ export default {
}
}
}
}
},
methods: {
doShow(operate) {