提交 dbd6d201 authored 作者: lihuihui's avatar lihuihui

fix: 修改bug

上级 617a7a20
......@@ -105,6 +105,7 @@ export default {
resolve(true)
})
.catch(err => {
console.log(err)
reject(err)
})
})
......
......@@ -243,10 +243,10 @@ export default {
}
}
if (emptyDataIndex === -1) {
const params = this.getAnswer()
const params = { answers: JSON.stringify(this.getAnswer()) }
const id = this.$route.query.id
if (id) params.id = id
commitCase({ answers: JSON.stringify(params) })
commitCase(params)
.then(res => {
this.$message({
message: '保存成功!你可以在作品展示中查看/编辑报告,查看成绩',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论