From 09ab26b8df36c5ebd7cfc20a862011fb98681588 Mon Sep 17 00:00:00 2001
From: longyvfengyun <496960745@qq.com>
Date: 星期五, 30 六月 2023 08:35:06 +0800
Subject: [PATCH] 视频监控

---
 src/views/home/index.vue |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 33ce1df..051d1eb 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -1,9 +1,11 @@
 <script setup>
-import {onMounted, onUnmounted, watch} from "vue";
+import {onMounted, onUnmounted, ref, watch} from "vue";
 import MapPin from "@/components/MapPin.vue";
 import slideMenu from "@/views/mainLayout/js/slideMenu";
 import homeContentModule from "@/views/home/js/homeContentModule";
 import homeInfoModule from "@/views/home/js/homeInfoModule";
+
+const isShowMapPin = ref(true);
 
 const {
 	isCollapse
@@ -19,7 +21,9 @@
 const {homeInfo} = homeInfoModule();
 
 watch(isCollapse, ()=>{
+	isShowMapPin.value = false;
 	setTimeout(()=>{
+		isShowMapPin.value = true;
 		setContainerSize();
 	}, 500);
 });
@@ -40,12 +44,14 @@
 <template>
 	<div class="home-content" ref="homeContentDom">
 		<map-pin
+			v-if="isShowMapPin"
 			v-for="(item, index) in homeInfo" :key="'key'+index"
 			:visible="item.pos.visible"
 			:name="item.name"
 			:c-width="cWidth" :c-height="cHeight"
 			:d-width="dWidth" :d-height="dHeight"
-			:x="item.pos.x" :y="item.pos.y"></map-pin>
+			:x="item.pos.x" :y="item.pos.y"
+			:info="item.info"></map-pin>
 		<div class="card-box-list">
 
 		</div>

--
Gitblit v1.9.1