From d0a6b8e951ab962fe4e01ef35844bd1cce1b3e40 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Sat, 6 May 2023 16:17:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E8=80=83=E8=AF=95=E6=97=B6?= =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E6=A8=A1=E5=BC=8F=E5=BC=B9=E7=AA=97=E5=85=B3?= =?UTF-8?q?=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/display/exam/selectExam.vue | 7 +++++++ 1 file changed, 7 insertions(+) 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 => {