zhangjie 1 年之前
父节点
当前提交
d4718e0ce5
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/features/examwork/StudentExamDetail/PreviewPaperDialog.vue

+ 2 - 0
src/features/examwork/StudentExamDetail/PreviewPaperDialog.vue

@@ -217,11 +217,13 @@ export default {
                   rQuestion.answer = rQuestion.answer.map(
                     (ans) => optionMap[ans]
                   );
+                  rQuestion.answer.sort((a, b) => a - b);
                 }
                 if (rQuestion.studentAnswer) {
                   rQuestion.studentAnswer = rQuestion.studentAnswer.map(
                     (ans) => optionMap[ans]
                   );
+                  rQuestion.studentAnswer.sort((a, b) => a - b);
                 }
               }
               return rQuestion;