提交 536811e9 authored 作者: haodaking's avatar haodaking

chore(课程考试): 自动提交试卷间隔时间修改为10秒;自动提交接口报错,取消错误抛出;

上级 57cce34b
......@@ -346,7 +346,7 @@ export default {
const params = { answers: JSON.stringify(answers), type: 0 }
// 请求接口
this.handleSubmitRequest(params)
}, 1000)
}, 10000)
},
// 处理请求接口答案数据
handleSubmitData() {
......@@ -397,7 +397,8 @@ export default {
}
})
.catch(error => {
params.type && this.$message.error(error.message)
if (!params.type) return
this.$message.error(error.message)
this.autoSubmitTimer && clearInterval(this.autoSubmitTimer)
this.getExam()
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论