Przeglądaj źródła

fix answerAllQuestions bug

Michael Wang 6 lat temu
rodzic
commit
d5ffe89261
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/features/OnlineExam/Examing/ExamingHome.vue

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

@@ -415,7 +415,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(