增加绘图的默认状态设置

This commit is contained in:
ival 2019-08-26 14:30:01 +08:00
parent 554db95dd6
commit 0255a3250e

View File

@ -130,7 +130,9 @@ export default {
if (parseInt(this.mapInfo.id)) {
this.mapInfo.name = this.$route.query.name;
getMapDetail(this.$route.params.mapId).then(response => {
this.$store.dispatch('map/setMapData', response.data);
this.$store.dispatch('map/setMapData', response.data).then(resp => {
this.$store.dispatch('training/setMapDefaultState');
});
this.setDelayUnlockStatus(response.data, '00');
this.initAutoSaveTask();
}).catch(() => {