修改代码

This commit is contained in:
ival 2019-11-15 19:07:46 +08:00
parent a8e0ff947f
commit 88007ba56b
2 changed files with 2 additions and 6 deletions

View File

@ -365,11 +365,7 @@ export default {
this.loading = true;
await putJointTrainingExit(this.group);
this.loading = false;
if (this.$route.query.subSystem) {
this.$router.push({ path: `/trainingPlatform/detail/${this.$route.query.subSystem}`, query: {mapId: this.room.mapId}});
} else {
this.$router.go(-1);
}
} catch (error) {
this.$emit('message', {type:'error', message: this.$t('error.operationFailure')});
}

View File

@ -179,7 +179,7 @@ export default {
Object.assign(this.room, room);
switch (room.state) {
case '03': //
this.$router.go(-1);
this.$router.push({ path: `/trainingPlatform/detail/${this.$route.query.subSystem}`, query: {mapId: this.room.mapId}});
break;
case '02': // 仿
this.jumpInSimulation();