修改代码
This commit is contained in:
parent
a8e0ff947f
commit
88007ba56b
@ -365,11 +365,7 @@ export default {
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
await putJointTrainingExit(this.group);
|
await putJointTrainingExit(this.group);
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (this.$route.query.subSystem) {
|
|
||||||
this.$router.push({ path: `/trainingPlatform/detail/${this.$route.query.subSystem}`, query: {mapId: this.room.mapId}});
|
this.$router.push({ path: `/trainingPlatform/detail/${this.$route.query.subSystem}`, query: {mapId: this.room.mapId}});
|
||||||
} else {
|
|
||||||
this.$router.go(-1);
|
|
||||||
}
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$emit('message', {type:'error', message: this.$t('error.operationFailure')});
|
this.$emit('message', {type:'error', message: this.$t('error.operationFailure')});
|
||||||
}
|
}
|
||||||
|
@ -179,7 +179,7 @@ export default {
|
|||||||
Object.assign(this.room, room);
|
Object.assign(this.room, room);
|
||||||
switch (room.state) {
|
switch (room.state) {
|
||||||
case '03': // 房间销毁
|
case '03': // 房间销毁
|
||||||
this.$router.go(-1);
|
this.$router.push({ path: `/trainingPlatform/detail/${this.$route.query.subSystem}`, query: {mapId: this.room.mapId}});
|
||||||
break;
|
break;
|
||||||
case '02': // 开始仿真
|
case '02': // 开始仿真
|
||||||
this.jumpInSimulation();
|
this.jumpInSimulation();
|
||||||
|
Loading…
Reference in New Issue
Block a user