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

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

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