Explorar o código

fix 多媒体考试的score:0被处理成null

Michael Wang %!s(int64=3) %!d(string=hai) anos
pai
achega
c8b96a3bf8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/features/mark/MultiMediaMarkBody.vue

+ 1 - 1
src/features/mark/MultiMediaMarkBody.vue

@@ -152,7 +152,7 @@ watch(
         questionForRender.objective = questionBody.objective;
         questionForRender.objective = questionBody.objective;
         questionForRender.standardAnswer = questionBody.answer;
         questionForRender.standardAnswer = questionBody.answer;
         questionForRender.studentAnswer = stuAns.answer;
         questionForRender.studentAnswer = stuAns.answer;
-        questionForRender.score = taskQuestion?.score || null;
+        questionForRender.score = taskQuestion?.score ?? null;
         questionForRender.totalScore = taskQuestion?.maxScore || 0;
         questionForRender.totalScore = taskQuestion?.maxScore || 0;
         questions.push(questionForRender);
         questions.push(questionForRender);
       }
       }