zhangjie 2 年之前
父节点
当前提交
75c9486806
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/features/invigilation/RealtimeMonitoring/RealtimeMonitoring.vue

+ 3 - 1
src/features/invigilation/RealtimeMonitoring/RealtimeMonitoring.vue

@@ -725,6 +725,9 @@ export default {
       }
     },
   },
+  beforeDestroy() {
+    delete window.inviligateWarning;
+  },
   beforeRouteEnter(to, from, next) {
     next((vm) => {
       if (["WarningDetail", "VideoCommunication"].includes(from.name)) {
@@ -742,7 +745,6 @@ export default {
     this.loopRunning = false;
     this.clearLoopSetTs();
     this.cleartNoticeLoopSetTs();
-    delete window.inviligateWarning;
     Notification.closeAll();
     next();
   },