diff --git a/src/layout/components/CoreVideo/allList.vue b/src/layout/components/CoreVideo/allList.vue index 1d56c92..7ed01ae 100644 --- a/src/layout/components/CoreVideo/allList.vue +++ b/src/layout/components/CoreVideo/allList.vue @@ -170,7 +170,7 @@ const createPlayer = (cameraIndexCode,videoElement) => { break; default: console.log('无法恢复的错误,销毁播放器'); - // hls.destroy(); + hls.destroy(); break; } } diff --git a/src/layout/components/CoreVideo/index.vue b/src/layout/components/CoreVideo/index.vue index ce7a1ea..3e078ba 100644 --- a/src/layout/components/CoreVideo/index.vue +++ b/src/layout/components/CoreVideo/index.vue @@ -190,7 +190,7 @@ let isCollect = ref(0) const onVideoCollect = () => { pubSub.subscribe('videoCollect', () => { clearHlsRefs() - // getVideoList() + getVideoList() }) } diff --git a/src/views/monitor/components/box-2.vue b/src/views/monitor/components/box-2.vue index 29a37cc..b0be99d 100644 --- a/src/views/monitor/components/box-2.vue +++ b/src/views/monitor/components/box-2.vue @@ -443,7 +443,6 @@ const handleCollect = async (id, status, index) => { console.log( videoList.value[index].isCollect); if(index!=null){ videoList.value[index].isCollect = 1 - this.$forceUpdate(); } } else { @@ -452,7 +451,7 @@ const handleCollect = async (id, status, index) => { } if(index!=null){ videoList.value[index].isCollect = 0 - this.$forceUpdate(); + } } pubSub.publish('videoCollect', id)