diff --git a/src/store/modules/training.js b/src/store/modules/training.js index 40b518aea..5788ba11a 100644 --- a/src/store/modules/training.js +++ b/src/store/modules/training.js @@ -605,7 +605,6 @@ const training = { const payLoad = { start: true, mode: TrainingMode.NORMAL }; dispatch('startTraining', payLoad); }, - /** * 结束模式 */ diff --git a/src/views/newMap/jointTrainingNew/index.vue b/src/views/newMap/jointTrainingNew/index.vue index cb2fe5ab3..1fcfdf560 100644 --- a/src/views/newMap/jointTrainingNew/index.vue +++ b/src/views/newMap/jointTrainingNew/index.vue @@ -319,7 +319,7 @@ export default { this.$store.dispatch('training/countTime'); this.$store.dispatch('map/setRunPlanStatus', resp.data.planRunning); if (resp.data.planRunning) { - this.$store.dispatch('training/simulationStart'); + this.$store.dispatch('training/start'); } else { this.$store.dispatch('training/over'); } diff --git a/src/views/newMap/jointTrainingNew/menuDemon.vue b/src/views/newMap/jointTrainingNew/menuDemon.vue index 19b141968..7e02a63c8 100644 --- a/src/views/newMap/jointTrainingNew/menuDemon.vue +++ b/src/views/newMap/jointTrainingNew/menuDemon.vue @@ -260,13 +260,13 @@ export default { time: model.initTime }; ranAsPlan(data, this.group).then(res => { - this.$store.dispatch('training/simulationStart').then(() => { - if (this.project == 'jsxt') { - this.jsStart = false; - } - this.$store.dispatch('map/setRunPlanStatus', true); - this.$store.dispatch('training/setInitTime', +new Date(`${new Date().toLocaleDateString()} ${model.initTime}`)); - }); + // this.$store.dispatch('training/simulationStart').then(() => { + if (this.project == 'jsxt') { + this.jsStart = false; + } + this.$store.dispatch('map/setRunPlanStatus', true); + this.$store.dispatch('training/setInitTime', +new Date(`${new Date().toLocaleDateString()} ${model.initTime}`)); + // }); }).catch((error) => { this.isDisable = false; if (error.code == '5001') {