|
@@ -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;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
/**
|
|
|
* 控制延时
|