bug 修改

This commit is contained in:
duanliang
2025-05-31 00:56:25 +08:00
parent db4c456952
commit 9b185b2a56
4 changed files with 5 additions and 4 deletions

View File

@@ -147,7 +147,6 @@
}
const onEnd = (evt)=>{
const itemIndex = parseInt(evt.to.getAttribute('data-item-index')); // 当前拖拽的 item 的下标
console.log(evt,itemIndex,'eeeeeeee')
getVideCollectCateSort({
key:videoList.value[itemIndex].key,
cameraIndexCodes:videoList.value[itemIndex].videos.map((item) => item.cameraIndexCode)
@@ -155,7 +154,8 @@
// getVideCollectCateList()
})
// postVideoRemain()
initVideo()
}
// 获取关注列表
const getVideCollectCateList = async () => {
@@ -294,7 +294,7 @@
})
hlsRefs.push(hls)
}
}, 2000)
}, 1000)
})
@@ -313,7 +313,7 @@
// 更新视频
const postVideoRemain = async () => {
timer = setInterval(() => {
clearInterval(timer)
videoList.value.forEach((items,index)=>{
setTimeout(()=>{
postVideoRemainApi({
@@ -351,6 +351,7 @@
console.log(draggable,'draggable')
})
onUnmounted(() => {
if (timer) clearInterval(timer)
clearHlsRefs()
})