This commit is contained in:
sunzhenyu 2020-07-09 17:23:19 +08:00
commit 41a0ac6ebd
3 changed files with 5 additions and 1 deletions

View File

@ -749,8 +749,9 @@ const map = {
state.activeTrainListUpdate++;
},
resetActiveTrainList:(state) => {
state.activeTrainListUpdate = 0;
state.activeTrainList = [];
state.activeTrainListUpdate = 0;
state.activeTrainListChange = 0;
},
setDeleteCount: (state) => {
state.deleteCount++;

View File

@ -177,6 +177,7 @@ export default {
this.$store.dispatch('training/setMapDefaultState').then(() => {
this.$store.dispatch('map/setRunPlanStatus', false);
this.$store.dispatch('map/clearJlmapTrainView');
this.$store.dispatch('map/resetActiveTrainList');
this.$store.dispatch('map/setTrainWindowShow', false);
});
});
@ -193,6 +194,7 @@ export default {
back() {
this.$store.dispatch('training/over').then(() => {
EventBus.$emit('runPlanStop');
this.$store.dispatch('map/resetActiveTrainList');
EventBus.$emit('chatSubscribeStop');
history.go(-1);
Notification.closeAll();

View File

@ -301,6 +301,7 @@ export default {
this.memberId = '';
this.$store.dispatch('map/setRunPlanStatus', false);
this.$store.dispatch('training/setPrdType', '01');
this.$store.dispatch('map/resetActiveTrainList');
// this.initAutoSaveScript();
this.$store.state.scriptRecord.bgSet;
this.$store.dispatch('scriptRecord/updateBgSet', false);