zhangjie 2 ani în urmă
părinte
comite
75c9486806

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

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