From 7c09dbc7c5b2c5f27349af78ea32726d1fb2d4ff Mon Sep 17 00:00:00 2001
From: 13404089107 <puwei@sinata.cn>
Date: 星期三, 02 四月 2025 09:41:57 +0800
Subject: [PATCH] 修改文档上的bug

---
 src/components/MapPanel.vue |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/components/MapPanel.vue b/src/components/MapPanel.vue
index 7a240d2..659822a 100644
--- a/src/components/MapPanel.vue
+++ b/src/components/MapPanel.vue
@@ -91,6 +91,14 @@
         mapStyle: 'amap://styles/normal'
       })
 
+      this.map.on('click', () => {
+        this.markers = this.currentMakers
+        this.$nextTick(() => {
+          this.map.clearMap()
+          this.addMapMarkers()
+        })
+      })
+
       this.addMapMarkers()
     },
     addMapMarkers() {

--
Gitblit v1.7.1