修改代码
This commit is contained in:
parent
a8e0ff947f
commit
88007ba56b
@ -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')});
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user