Ver Fonte

change:
关闭录像回放界面自动关闭推流

kindring há 1 ano atrás
pai
commit
7ea27e93a5
1 ficheiros alterados com 6 adições e 1 exclusões
  1. 6 1
      web_src/src/components/GBRecordDetail.vue

+ 6 - 1
web_src/src/components/GBRecordDetail.vue

@@ -185,7 +185,12 @@
       this.dateChange();
 
 		},
-		destroyed() {
+    beforeDestroy() {
+      console.log('准备销毁页面')
+      this.stopPlayRecord();
+      this.stopDownloadRecord();
+    },
+    destroyed() {
 			this.$destroy('recordVideoPlayer');
 		},
 		methods: {