Browse Source

Revert "进入考试后摄像头初始化宽容设置"

This reverts commit 2405eb5a0c82968d910d9603be835646a580dd2a.
Michael Wang 6 years ago
parent
commit
fdd05e5d1d
1 changed files with 1 additions and 5 deletions
  1. 1 5
      src/features/OnlineExam/Examing/ExamingHome.vue

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

@@ -136,11 +136,7 @@ export default {
 
       let initSnapshotTrialTimes = 0;
       this.initSnapInterval = setInterval(() => {
-        if (
-          // 在数据取完,并且超过30秒后,摄像头必须工作正常才行。或者超过60秒后,直接抓拍。
-          (this.exam && initSnapshotTrialTimes > 5) ||
-          initSnapshotTrialTimes > 10
-        ) {
+        if (this.exam || initSnapshotTrialTimes > 12) {
           clearInterval(this.initSnapInterval);
           this.serverLog(
             "debug/S-002001",