Explorar o código

Revert "Revert "fix answerAllQuestions bug""
之前的revert是为了避免影响线上行为, 这次重新发布.

This reverts commit 4331d35f67e3dba79ade54b1667ab584d8f89928.

Michael Wang %!s(int64=5) %!d(string=hai) anos
pai
achega
2ff7eb793d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/features/OnlineExam/Examing/ExamingHome.vue

+ 1 - 1
src/features/OnlineExam/Examing/ExamingHome.vue

@@ -536,7 +536,7 @@ export default {
     },
     async answerAllQuestions(ignoreDirty) {
       const answers = this.examQuestionList
-        .filter(eq => !ignoreDirty && eq.dirty)
+        .filter(eq => (ignoreDirty ? true : eq.dirty))
         .filter(eq => eq.getQuestionContent)
         .map(eq => {
           return Object.assign(