提交 8323b7ca authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 afe28ce5
......@@ -120,8 +120,8 @@ export default {
const res = await api.getTopic(this.examId, { show_answer: this.pageOptions.showAnswer ? '1' : undefined })
this.paper = res
this.questionItems = this.genQuestionList(res.question_items)
await this.fetchExamCache()
this.setCacheExamTimer()
this.fetchExamCache()
} catch (error) {
this.$router.replace({ name: 'login', params: { examId: this.examId }, query: this.$route.query })
}
......@@ -233,7 +233,7 @@ export default {
// 10 秒缓存一次试卷
this.cacheExamTimer = setInterval(() => {
this.postCacheExam()
}, 10000)
}, 5000)
},
// 倒计时
setCountdownTimer() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论