提交 541a744b authored 作者: lihuihui's avatar lihuihui

修改bug

上级 5c8a2b87
......@@ -130,9 +130,9 @@ export default {
})
}
})
if (!this.isExamEnd) {
this.endExamRequest(1)
}
// if (!this.isExamEnd) {
// this.endExamRequest(1)
// }
} else {
const count = parseInt(this.questionParams.question.total_question_count) - parseInt(this.countAnswer())
if (count === 0) {
......@@ -174,8 +174,8 @@ export default {
answer: JSON.stringify(this.questionParams.answerRecord)
}
action.Exam.endExam(this.$route.params.examId, param).then(res => {
clearInterval(this.clearTime)
if (!n) {
clearInterval(this.clearTime)
this.$router.replace({
path: '/examEnd'
})
......@@ -219,12 +219,13 @@ export default {
this.isExamTimeDate = false
clearInterval(this.clearTime)
this.examTime = '00:00:00 倒计时'
this.endExam(1)
} else {
this.countDown(countTime)
}
if (flag) {
parseInt(countTime) <= 2 && (() => {
this.endExam(1)
parseInt(countTime) <= 5 && (() => {
this.endExamRequest(1)
flag = false
})()
}
......@@ -264,9 +265,6 @@ export default {
}
}).catch(err => {
console.log(err)
// this.$alert(err.message, {
// callback: action => {}
// })
})
},
getSignStu() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论