diff --git a/src/api/simulation.js b/src/api/simulation.js index 0db7d9cb9..fa3aaac91 100644 --- a/src/api/simulation.js +++ b/src/api/simulation.js @@ -567,3 +567,10 @@ export function exitSimulation(group) { method: 'put' }); } +/** 仿真监管那里进入仿真 */ +export function enterSimulationByTeacher(group) { + return request({ + url: `/simulation/${group}/monitor`, + method: 'post' + }); +} diff --git a/src/views/newMap/display/trainingList/trainingPositionTip.vue b/src/views/newMap/display/trainingList/trainingPositionTip.vue index d0087946b..f546955e2 100644 --- a/src/views/newMap/display/trainingList/trainingPositionTip.vue +++ b/src/views/newMap/display/trainingList/trainingPositionTip.vue @@ -72,9 +72,11 @@ export default { this.position = { x: 0, y: 0 }; }, '$store.state.training.tipEvent': function (val) { - if (this.tip) { - setTimeout(() => { this.tipInit(); }, 10); - } + setTimeout(() => { + if (this.tip) { + this.tipInit(); + } + }, 10); } }, methods: { diff --git a/src/views/system/existingSimulation/index.vue b/src/views/system/existingSimulation/index.vue index c0885207d..aa1c06895 100644 --- a/src/views/system/existingSimulation/index.vue +++ b/src/views/system/existingSimulation/index.vue @@ -7,7 +7,7 @@