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();
   },