瀏覽代碼

fix answerAllQuestions bug

Michael Wang 6 年之前
父節點
當前提交
d5ffe89261
共有 1 個文件被更改,包括 1 次插入1 次删除
  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(