Explorar el Código

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

kindring hace 1 año
padre
commit
7ea27e93a5
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  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: {