Explorar o código

如果考试设置没有人脸检测,则减少等待抓拍的时间

Michael Wang %!s(int64=6) %!d(string=hai) anos
pai
achega
e5224b30b8
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/features/OnlineExam/Examing/ExamingHome.vue

+ 3 - 1
src/features/OnlineExam/Examing/ExamingHome.vue

@@ -510,7 +510,9 @@ export default {
         delay = 0;
       }
       // 给抓拍照片多一秒处理时间
-      delay = delay + 1;
+      if (this.faceEnable) {
+        delay = delay + 1;
+      }
       setTimeout(() => this.realSubmitPaperStep2(), delay * 1000);
       this.submitCount = 1;
     },