diff --git a/dist.zip b/dist.zip
index a144312..d27a7e5 100644
Binary files a/dist.zip and b/dist.zip differ
diff --git a/src/components/VideoDialog/index.vue b/src/components/VideoDialog/index.vue
index 5e74304..df298f3 100644
--- a/src/components/VideoDialog/index.vue
+++ b/src/components/VideoDialog/index.vue
@@ -36,13 +36,13 @@
取消关注
关注
@@ -97,11 +97,14 @@
() => props.isCollect,
(val) => {
if (val) {
+ console.log(val,'val 2222222222222222222222')
colletCond.value = val
// setTimeout(() => {
// init()
// }, 1000)
- }
+ }else{
+ colletCond.value = 0
+ }
},
{
immediate: true
@@ -109,16 +112,18 @@
)
// 关注
const handleCollect = async (id, status, index) => {
+ // console.log(props.isCollect,777788888)
await postVideoCollectApi({
cameraIndexCode:props.cameraIndexCode,
- isCollect: colletCond.value == 0 ? 1 : 0
+ isCollect: props.isCollect == 0 ? 1 : 0
})
- if (colletCond.value == 0) {
- colletCond.value = 1
+ if (props.isCollect == 0) {
+ props.isCollect = 1
} else {
- colletCond.value = 0
+ props.isCollect = 0
}
pubSub.publish('videoCollect', props.cameraIndexCode)
+ modelValue.value = false
}
const handleAction = async (e) => {
if (e == STOP) {
@@ -177,6 +182,7 @@
}
})
}
+
onMounted(()=>{
})
diff --git a/src/layout/components/CoreVideo/allList.vue b/src/layout/components/CoreVideo/allList.vue
index 0e59e87..331116a 100644
--- a/src/layout/components/CoreVideo/allList.vue
+++ b/src/layout/components/CoreVideo/allList.vue
@@ -32,7 +32,7 @@
-