林旭祥 2 månader sedan
förälder
incheckning
1126fd1a8a
1 ändrade filer med 24 tillägg och 24 borttagningar
  1. 24 24
      src/utils/trainWs.ts

+ 24 - 24
src/utils/trainWs.ts

@@ -666,30 +666,30 @@ export function useWs() {
   /**
    * 清空状态更新定时任务
    */
-  function getClearExamStateTimer() {
-    for (let i = 0; i < examStateList.length; i++) {
-      if (examStateList[i].hasOwnProperty('timer1')) {
-        clearInterval(examStateList[i].timer1);
-        examStateList[i].timer1 = null;
-      }
-      if (examStateList[i].hasOwnProperty('timer2')) {
-        clearInterval(examStateList[i].timer2);
-        examStateList[i].timer2 = null;
-      }
-      if (examStateList[i].hasOwnProperty('timer3')) {
-        clearInterval(examStateList[i].timer3);
-        examStateList[i].timer3 = null;
-      }
-      if (examStateList[i].hasOwnProperty('timer4')) {
-        clearInterval(examStateList[i].timer4);
-        examStateList[i].timer4 = null;
-      }
-      if (examStateList[i].hasOwnProperty('timer5')) {
-        clearInterval(examStateList[i].timer5);
-        examStateList[i].timer5 = null;
-      }
-    }
-  }
+  // function getClearExamStateTimer() {
+  //   for (let i = 0; i < examStateList.length; i++) {
+  //     if (examStateList[i].hasOwnProperty('timer1')) {
+  //       clearInterval(examStateList[i].timer1);
+  //       examStateList[i].timer1 = null;
+  //     }
+  //     if (examStateList[i].hasOwnProperty('timer2')) {
+  //       clearInterval(examStateList[i].timer2);
+  //       examStateList[i].timer2 = null;
+  //     }
+  //     if (examStateList[i].hasOwnProperty('timer3')) {
+  //       clearInterval(examStateList[i].timer3);
+  //       examStateList[i].timer3 = null;
+  //     }
+  //     if (examStateList[i].hasOwnProperty('timer4')) {
+  //       clearInterval(examStateList[i].timer4);
+  //       examStateList[i].timer4 = null;
+  //     }
+  //     if (examStateList[i].hasOwnProperty('timer5')) {
+  //       clearInterval(examStateList[i].timer5);
+  //       examStateList[i].timer5 = null;
+  //     }
+  //   }
+  // }
 
   /**
    * 控制延时