提交 617a7a20 authored 作者: lihuihui's avatar lihuihui

fix: 修改bug

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