Explorar o código

修复考试工坊试卷历史记录问题

FanHong hai 2 días
pai
achega
4230d04eb4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      shudao-vue-frontend/src/views/ExamWorkshop.vue

+ 1 - 1
shudao-vue-frontend/src/views/ExamWorkshop.vue

@@ -3043,7 +3043,7 @@ const restoreExamFromHistory = (examData) => {
           questions: singleChoice.questions.map(q => ({
           questions: singleChoice.questions.map(q => ({
             text: q.text || q.question_text,
             text: q.text || q.question_text,
             options: q.options || [],
             options: q.options || [],
-            selectedAnswer: q.selectedAnswer || ""
+            selectedAnswer: q.selectedAnswer || q.correct_answer || q.answer || ""
           }))
           }))
         },
         },
         judge: {
         judge: {