diff --git a/src/views/equipmentList/list.vue b/src/views/equipmentList/list.vue index 5b86c1c..7a0600d 100644 --- a/src/views/equipmentList/list.vue +++ b/src/views/equipmentList/list.vue @@ -134,6 +134,7 @@
{{ videoName }}-{{ monitoringArea }}监控
+ 刷新 绘制区域 清空区域 保存区域 @@ -688,6 +689,19 @@ watch( videoName.value = newValue === 1 ? '绘制区域' : '实时监控'; } ); + +/** 刷新按钮操作 */ +const handleRefresh = async () => { + if (!form.value.id) return; + destroyHls(monitorVideoRef); + monitorVideoUrl.value = ''; + await videosStore.getVideos(form.value.id); + monitorVideoUrl.value = videosStore.hisUrl || ''; + if (monitorVideoUrl.value) { + await nextTick(); + initHls(monitorVideoUrl, monitorVideoRef); + } +};