desc: 修改快速入口提示问题

This commit is contained in:
zyy 2019-08-14 16:47:54 +08:00
parent eef2fed8a2
commit 62674f84ff

View File

@ -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('您没有选择房间');
}
}
}