bug 修改
This commit is contained in:
Binary file not shown.
BIN
dist5.30.zip
BIN
dist5.30.zip
Binary file not shown.
Binary file not shown.
@@ -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()
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user