Commit 23e158e9 authored by limingzhe's avatar limingzhe

fix: debug

parent 3ddb60ab
...@@ -186,9 +186,12 @@ class StudyRecord { ...@@ -186,9 +186,12 @@ class StudyRecord {
*/ */
setQuestionResult(index, score) { setQuestionResult(index, score) {
if (index >= 0 && index < this.totalQuestions) { if (index >= 0 && index < this.totalQuestions) {
//只记录第一次的分数
if (this.questionResults[index] === -1) {
this.questionResults[index] = score; 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