Browse Source

fix answerAllQuestions bug

Michael Wang 6 năm trước cách đây
mục cha
commit
d5ffe89261
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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(