Commit 23e158e9 authored by limingzhe's avatar limingzhe

fix: debug

parent 3ddb60ab
......@@ -186,7 +186,10 @@ class StudyRecord {
*/
setQuestionResult(index, score) {
if (index >= 0 && index < this.totalQuestions) {
this.questionResults[index] = score;
//只记录第一次的分数
if (this.questionResults[index] === -1) {
this.questionResults[index] = score;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment