diff --git a/src/views/newMap/display/exam/selectExam.vue b/src/views/newMap/display/exam/selectExam.vue index cd39b7a07..5f8247928 100644 --- a/src/views/newMap/display/exam/selectExam.vue +++ b/src/views/newMap/display/exam/selectExam.vue @@ -86,6 +86,13 @@ export default { }); }, start(row) { + if (this.$store.state.trainingNew.trainingSwitch) { + this.$message.error('请先结束当前实训后再加载新的考试!'); + return; + } + if (this.$store.state.trainingNew.trainingDetail) { + this.$store.dispatch('trainingNew/setTrainingDetail', null); + } generateExam(row.id) .then(resp => { getUserExamInfo(resp.data.id).then(res => {