Browse Source

fix: 修复无法进行第二次考试bug

yhd12345 3 years ago
parent
commit
350f5bdfbd
1 changed files with 8 additions and 8 deletions
  1. 8 8
      src/views/exam/ExamPane.vue

+ 8 - 8
src/views/exam/ExamPane.vue

@@ -407,14 +407,14 @@ export default Vue.extend({
       this.examId = this.$route.params.examId
 
       // 提交过客观题,说明已经交卷
-      getExamSubmitRecordsByUserId(this.examId).then(({ data }) => {
-        if (data.result.find((val) => !val.message)) {
-          this.reenter = true
-          setTimeout(() => {
-            this.leaveExam()
-          }, 1000)
-        }
-      })
+      // getExamSubmitRecordsByUserId(this.examId).then(({ data }) => {
+      //   if (data.result.find((val) => !val.message)) {
+      //     this.reenter = true
+      //     setTimeout(() => {
+      //       this.leaveExam()
+      //     }, 1000)
+      //   }
+      // })
 
       getExamById(this.examId).then(({ data }) => {
         this.examInfo = data.result