From 62674f84ffcec0d76fdaf6043efb35d56ff0c8cf Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Wed, 14 Aug 2019 16:47:54 +0800 Subject: [PATCH] =?UTF-8?q?desc:=20=E4=BF=AE=E6=94=B9=E5=BF=AB=E9=80=9F?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=E6=8F=90=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demonstration/deomonList/index.vue | 24 ++++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/views/demonstration/deomonList/index.vue b/src/views/demonstration/deomonList/index.vue index 745d8fa47..9da81c9be 100644 --- a/src/views/demonstration/deomonList/index.vue +++ b/src/views/demonstration/deomonList/index.vue @@ -103,16 +103,20 @@ export default { }, async handleJoin() { - await getjointTraining(this.group); - if (this.state == '02') { - launchFullscreen(); - await putJointTrainingSimulationEntrance(this.group); - const rest = await getPublishMapInfo(this.mapId); - const query = { skinStyle: rest.data.skinStyle, mapId: this.mapId, group: this.group }; - this.$router.push({ path: `/jointTraining`, query: query }); - } else if (this.state == '01') { - const query = { group: this.group }; - this.$router.push({ path: `/trainroom`, query: query }); + if (this.group) { + await getjointTraining(this.group); + if (this.state == '02') { + launchFullscreen(); + await putJointTrainingSimulationEntrance(this.group); + const rest = await getPublishMapInfo(this.mapId); + const query = { skinStyle: rest.data.skinStyle, mapId: this.mapId, group: this.group }; + this.$router.push({ path: `/jointTraining`, query: query }); + } else if (this.state == '01') { + const query = { group: this.group }; + this.$router.push({ path: `/trainroom`, query: query }); + } + } else { + this.$message.info('您没有选择房间'); } } }