Просмотр исходного кода

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

kindring 1 год назад
Родитель
Сommit
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: {