From 6c02fe9b75b9ae0f43a37caf10686586cccc898c Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Tue, 4 Aug 2020 09:40:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=A4=E9=94=80=E8=B0=83=E6=95=B4=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E5=9B=BE=E5=8A=A0=E8=BD=BD=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../newMap/jointTrainingNew/menuSchema.vue | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/views/newMap/jointTrainingNew/menuSchema.vue b/src/views/newMap/jointTrainingNew/menuSchema.vue index 4e405e88a..f5de2b151 100644 --- a/src/views/newMap/jointTrainingNew/menuSchema.vue +++ b/src/views/newMap/jointTrainingNew/menuSchema.vue @@ -108,16 +108,13 @@ export default { '$store.state.training.started': function (val) { this.setRuning(val); }, - // '$store.state.training.switchcount': async function () { - // if (this.group) { - // const started = this.$store.state.training.started; - // if (started) { - // await this.loadRunData(this.$route.query); - // } - // } - // }, - '$store.state.socket.runPlanReloadCount': function (val) { - this.loadRunData(this.$route.query); + '$store.state.training.switchcount': async function () { + if (this.group) { + const started = this.$store.state.training.started; + if (started) { + await this.loadRunData(this.$route.query); + } + } } }, async mounted() {