林旭祥 před 2 měsíci
rodič
revize
cb29254bc8
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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();
   }
 
   /**