林旭祥 hai 2 meses
pai
achega
cb29254bc8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/utils/trainWs.ts

+ 2 - 2
src/utils/trainWs.ts

@@ -625,7 +625,7 @@ export function useWs() {
     //清除计时器
     getClearTimer();
     //取消订阅
-    // PubSub.unsubscribe('setExamState');
+    PubSub.clearAllSubscriptions();
     //通知工作站关闭
     if (testList.length > 1) {
       //单WS多区
@@ -660,7 +660,7 @@ export function useWs() {
         timerManager[key] = null;
       }
     }
-    getClearExamStateTimer();
+    //getClearExamStateTimer();
   }
 
   /**