提交 688dd8f8 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 01ba818f
......@@ -237,7 +237,7 @@ export default {
// 获取试题状态
await this.getExamStatus()
this.checkStatusTimer && clearInterval(this.checkStatusTimer)
this.checkStatusTimer = setInterval(this.getExamStatus, 5000)
this.checkStatusTimer = setInterval(this.getExamStatus, 1000)
},
// 获取试题
getExam() {
......@@ -417,8 +417,7 @@ export default {
this.countdownTimer = setInterval(() => {
this.countdownDuration--
if (this.countdownDuration <= 0) {
this.getExam()
this.clearTimer()
this.countdownTimer && clearInterval(this.countdownTimer)
}
}, 1000)
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论