web
15 小时以前 d16d04d80e42802e9caaacee9617159921e18b93
fix:监控添加定时器获取数据
已修改1个文件
9 ■■■■■ 文件已修改
src/views/screen/flow/graphic/index.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/screen/flow/graphic/index.vue
@@ -16,6 +16,7 @@
const playerData = ref([])
const showFullScreen = ref(false)
const fullIndex = ref()
let timer = null
// 全屏弹窗
const handleFullScreen = (index) => {
@@ -67,6 +68,14 @@
    getFlowVideoData({pointId: id, pointName: searchVal.value}).then(async res => {
        playerData.value = res.data
    })
    if(timer) clearTimeout(timer)
    timer = setInterval(() => {
        getFlowVideoData({pointId: id, pointName: searchVal.value}).then(async res => {
            playerData.value = res.data
        })
    }, 10000)
}