关注bug 修改

This commit is contained in:
duanliang
2025-03-25 12:41:26 +08:00
parent 0f87b8d052
commit 3f03c23970
6 changed files with 44 additions and 16 deletions

View File

@@ -79,6 +79,7 @@ let isCollect = ref(0)
const postVideoRemain = () => {
timer = setInterval(() => {
if(!list.value.length) return false;
postVideoRemainApi({
cameraIndexCode: list.value.map((item) => item.cameraIndexCode)
})
@@ -99,8 +100,15 @@ let isCollect = ref(0)
pageSize: 5
})
list.value = res.data
console.log(list.value,'list.valuelist.valuelist.valuelist.value')
postVideoRemain()
console.log(list.value,'ddsdsdsfdd')
if(list.value.length){
postVideoRemain()
}else{
console.log('清除定时器')
//清除定时器
if (timer) clearInterval(timer)
}
// console.log(list.value,'list.valuelist.valuelist.valuelist.value')
// nextTick(() => {
// list.value.forEach(async (item, index) => {
// var video = document.getElementById(`video${index}`)
@@ -135,6 +143,7 @@ let isCollect = ref(0)
const onVideoCollect = () => {
pubSub.subscribe('videoCollect', () => {
clearHlsRefs()
// getVideoList()
})
}