From e9fc041b032f7ddb01c31501d6c7446ba4402365 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 31 Oct 2022 16:32:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/display/simulationMenu.vue | 4 ++++ src/views/organization/trainingManage/index.vue | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/newMap/display/simulationMenu.vue b/src/views/newMap/display/simulationMenu.vue index 0c5d16e2b..1c8acc433 100644 --- a/src/views/newMap/display/simulationMenu.vue +++ b/src/views/newMap/display/simulationMenu.vue @@ -557,6 +557,10 @@ export default { }, beforeDestroy() { window.removeEventListener('click', this.close); + this.$store.dispatch('trainingNew/trainingEnd'); + this.$store.dispatch('socket/clearTrainingStepTip'); + this.$store.dispatch('trainingNew/clearStepOrder'); + this.$store.dispatch('trainingNew/clearOperateOrder'); }, methods: { showChidren(data, index) { diff --git a/src/views/organization/trainingManage/index.vue b/src/views/organization/trainingManage/index.vue index 8b7d96574..8e1454bd9 100644 --- a/src/views/organization/trainingManage/index.vue +++ b/src/views/organization/trainingManage/index.vue @@ -159,7 +159,7 @@ export default { if (row.playerIdJson) { memberId = JSON.parse(row.playerIdJson)[0]; } - const data = {mapId: row.mapId, type:row.mapSystem || 'METRO', memberId: memberId}; + const data = {mapId: row.mapId, type:row.mapSystem || 'METRO', itemMap:{DEFAULT_MEMBER:memberId} }; // domConfig: Object // hasExam: false // hasTraining: false