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