diff --git a/dist31.zip b/dist01.zip similarity index 96% rename from dist31.zip rename to dist01.zip index a7edad2..d40da14 100644 Binary files a/dist31.zip and b/dist01.zip differ diff --git a/dist5.30.zip b/dist5.30.zip deleted file mode 100644 index 9bb7e99..0000000 Binary files a/dist5.30.zip and /dev/null differ diff --git a/distnew.zip b/dist5.31.zip similarity index 96% rename from distnew.zip rename to dist5.31.zip index fb76486..191faee 100644 Binary files a/distnew.zip and b/dist5.31.zip differ diff --git a/src/views/collect/components/video-box.vue b/src/views/collect/components/video-box.vue index 3f2d201..8fd1c62 100644 --- a/src/views/collect/components/video-box.vue +++ b/src/views/collect/components/video-box.vue @@ -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() })