提交 4d625a2f authored 作者: lihuihui's avatar lihuihui

update

上级 c621feba
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
}) })
}, },
// 提交考卷 isCache:0缓存,1提交 // 提交考卷 isCache:0缓存,1提交
submitExam(isCache = 1) { submitExam(isCache) {
const refData = this.$refs.exam const refData = this.$refs.exam
const id = this.data.id const id = this.data.id
const answer = {} const answer = {}
...@@ -63,7 +63,7 @@ export default { ...@@ -63,7 +63,7 @@ export default {
}) })
const param = { const param = {
sheet_id: id, sheet_id: id,
status: isCache, // 0缓存,1提交 status: isCache !== 0 ? 1 : 0, // 0缓存,1提交
answers: JSON.stringify(answer), answers: JSON.stringify(answer),
duration: refData.duration duration: refData.duration
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论