视频轮询功能

This commit is contained in:
2025-12-31 15:23:29 +08:00
parent d303a04986
commit 0bd3629190
16 changed files with 262 additions and 105 deletions

View File

@@ -7,7 +7,7 @@
</template>
<script setup>
import { computed, nextTick, onMounted, ref } from 'vue'
import { computed, nextTick, ref, watch } from 'vue'
import useMapStore from '@/store/modules/map'
import HikPlayerComponent from '@/components/Player/HikPlayer.vue'
@@ -16,11 +16,12 @@ const visible = ref(false)
const data = computed(() => mapStore.windowInfo.data)
const HikCCTV = ref(null)
onMounted(() => {
watch(() => data.value.videoCode, () => {
visible.value = false
nextTick(() => {
visible.value = true
})
})
}, { immediate: true })
defineExpose({
HikCCTV
})