瀏覽代碼

日常开发

林旭祥 2 月之前
父節點
當前提交
cb29254bc8
共有 1 個文件被更改,包括 2 次插入2 次删除
  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();
   }
 
   /**