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() {