关注bug 修改
This commit is contained in:
@@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user