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

修改bug

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