diff --git a/src/views/newMap/display/trainingList/trainingMenu.vue b/src/views/newMap/display/trainingList/trainingMenu.vue index 6c092c429..55b923c6d 100644 --- a/src/views/newMap/display/trainingList/trainingMenu.vue +++ b/src/views/newMap/display/trainingList/trainingMenu.vue @@ -186,7 +186,6 @@ export default { return; } try { - await loadPublishTraining(this.group, training.id, {mode: ''}); const detailResp = await getPublishTrainingDetail(training.id); this.training = detailResp.data; if (detailResp.data.mapLocationJson) { @@ -194,6 +193,7 @@ export default { this.$jlmap.updateTransform(mapLocation.scale, {x:mapLocation.x, y:mapLocation.y}); } this.$store.dispatch('trainingNew/setTrainingDetail', detailResp.data); + await loadPublishTraining(this.group, training.id, {mode: ''}); this.$message.success('加载实训成功!'); } catch (e) { console.error(e, '-----------');