From 577beb1a767da2c4a77409a019da85ac0aa473bb Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 27 Apr 2023 20:05:10 +0800
Subject: [PATCH] eventbus处理

---
 src/components/map/components/yToolTip.vue |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/components/map/components/yToolTip.vue b/src/components/map/components/yToolTip.vue
index 375c619..ac83c4e 100644
--- a/src/components/map/components/yToolTip.vue
+++ b/src/components/map/components/yToolTip.vue
@@ -2,7 +2,7 @@
  * @Author: shuishen 1109946754@qq.com
  * @Date: 2023-03-09 10:36:05
  * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2023-03-09 11:31:03
+ * @LastEditTime: 2023-04-27 19:54:44
  * @FilePath: \srs-police-affairs\src\components\map\components\yToolTip.vue
  * @Description: 
  * 
@@ -62,7 +62,12 @@
                 transform:translate3d(${Math.round(x)}px,${Math.round(y)}px, 0);
             `
         }
-    }
+    },
+
+    destroyed () {
+        this.$EventBus.$off('showTooltip')
+        this.$EventBus.$off('closeTooltip')
+    },
 }
 </script>
 

--
Gitblit v1.9.3