|
@@ -30,7 +30,7 @@
|
|
|
</div>
|
|
|
<div style="color: blue">
|
|
|
得分 / 总分 :{{
|
|
|
- (question.score ?? "") + " / " + question.totalScore
|
|
|
+ (question.score ?? "-") + " / " + question.totalScore
|
|
|
}}
|
|
|
</div>
|
|
|
</div>
|
|
@@ -85,8 +85,9 @@ function getDomByRichTextJSON(rt: Array<RichTextJSON> | RichTextJSON | null) {
|
|
|
watch(
|
|
|
() => store.currentTask,
|
|
|
async () => {
|
|
|
- const res = await updateStudentAnswerJSON();
|
|
|
questions.value.splice(0);
|
|
|
+ if (!store.currentTask?.jsonUrl) return;
|
|
|
+ const res = await updateStudentAnswerJSON();
|
|
|
|
|
|
const stuQuestions = res.data; // TODO: add type
|
|
|
for (const q of stuQuestions) {
|