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;