Sfoglia il codice sorgente

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

kindring 1 anno fa
parent
commit
7ea27e93a5
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  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: {