Эх сурвалжийг харах

抓拍数量对不上,在一分钟后,强制交卷

Michael Wang 6 жил өмнө
parent
commit
2087022b11

+ 7 - 2
src/features/OnlineExam/Examing/ExamingHome.vue

@@ -277,11 +277,16 @@ export default {
       }
       // 确保抓拍指令在交卷前执行
       setTimeout(() => this.realSubmitPaperStep2(), 1000);
+      this.submitCount = 1;
     },
     async realSubmitPaperStep2() {
       if (this.snapProcessingCount > 0) {
-        setTimeout(() => this.realSubmitPaperStep2(), 300);
-        return;
+        this.submitCount++;
+        if (this.submitCount < 200) {
+          // 一分钟后,强制交卷
+          setTimeout(() => this.realSubmitPaperStep2(), 300);
+          return;
+        }
       }
       if (this.submitLock) {
         return;