切换考试时实训模式弹窗关闭
This commit is contained in:
parent
dd45877e1c
commit
d0a6b8e951
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user