浏览代码

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

This reverts commit 4331d35f67e3dba79ade54b1667ab584d8f89928.

Michael Wang 5 年之前
父节点
当前提交
2ff7eb793d
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {
     async answerAllQuestions(ignoreDirty) {
       const answers = this.examQuestionList
       const answers = this.examQuestionList
-        .filter(eq => !ignoreDirty && eq.dirty)
+        .filter(eq => (ignoreDirty ? true : eq.dirty))
         .filter(eq => eq.getQuestionContent)
         .filter(eq => eq.getQuestionContent)
         .map(eq => {
         .map(eq => {
           return Object.assign(
           return Object.assign(