소스 검색

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

kindring 1 년 전
부모
커밋
7ea27e93a5
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  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: {