Sfoglia il codice sorgente

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

Michael Wang 3 anni fa
parent
commit
c8b96a3bf8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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.standardAnswer = questionBody.answer;
         questionForRender.studentAnswer = stuAns.answer;
-        questionForRender.score = taskQuestion?.score || null;
+        questionForRender.score = taskQuestion?.score ?? null;
         questionForRender.totalScore = taskQuestion?.maxScore || 0;
         questions.push(questionForRender);
       }