提交 428ec484 authored 作者: 王鹏飞's avatar 王鹏飞

fix: 修复试卷分数显示异常的问题

上级 1b625eb1
...@@ -115,9 +115,10 @@ export default { ...@@ -115,9 +115,10 @@ export default {
}, },
// 已添加的试题总分 // 已添加的试题总分
questionsTotalScore() { questionsTotalScore() {
return this.questions.reduce((total, item) => { const result = this.questions.reduce((total, item) => {
return total + parseFloat(item.score || 0) return total + parseFloat(item.score || 0)
}, 0) }, 0)
return Math.floor(result)
} }
}, },
methods: { methods: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论