浏览代码

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

FanHong 2 天之前
父节点
当前提交
4230d04eb4
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 => ({
             text: q.text || q.question_text,
             options: q.options || [],
-            selectedAnswer: q.selectedAnswer || ""
+            selectedAnswer: q.selectedAnswer || q.correct_answer || q.answer || ""
           }))
         },
         judge: {