diff --git a/distnew.zip b/distnew.zip new file mode 100644 index 0000000..fb76486 Binary files /dev/null and b/distnew.zip differ diff --git a/src/components/VideoDialog/index.vue b/src/components/VideoDialog/index.vue index 3ec24e9..3f397a0 100644 --- a/src/components/VideoDialog/index.vue +++ b/src/components/VideoDialog/index.vue @@ -18,13 +18,13 @@
取消关注
关注 @@ -94,7 +94,6 @@ default: 0 } }) - let colletCond = ref(0) let modelValue = defineModel() let videoRef = ref() let webRtcServer = null @@ -104,18 +103,19 @@ () => props.isCollect, (val) => { if (val) { - colletCond.value = val + // colletCond.value = val // setTimeout(() => { // init() // }, 1000) }else{ - colletCond.value = 0 + // colletCond.value = 0 } }, { immediate: true } ) + let colletCond = ref(props.isCollect) let isDayCurr = ref(props.isDiy) // 收藏 const handleCollectAdd = async (id, status, index) => { @@ -136,12 +136,12 @@ const handleCollect = async (id, status, index) => { await postVideoCollectApi({ cameraIndexCode:props.cameraIndexCode, - isCollect: props.isCollect == 0 ? 1 : 0 + isCollect: colletCond.value == 0 ? 1 : 0 }) - if (props.isCollect == 0) { - props.isCollect = 1 + if (colletCond.value == 0) { + colletCond.value = 1 } else { - props.isCollect = 0 + colletCond.value = 0 modelValue.value = false } pubSub.publish('videoCollect', props.cameraIndexCode) diff --git a/src/views/collect/components/video-box.vue b/src/views/collect/components/video-box.vue index c12a44a..c2481d7 100644 --- a/src/views/collect/components/video-box.vue +++ b/src/views/collect/components/video-box.vue @@ -14,7 +14,7 @@ width:(100/grad)+'%' }"> -
+