From d46ebfb71da0148dcc2724024cf7b053d784f299 Mon Sep 17 00:00:00 2001
From: 少年 <1392120328@qq.com>
Date: 星期二, 05 三月 2024 18:35:10 +0800
Subject: [PATCH] youhua

---
 src/components/poplayer/history2.vue |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/components/poplayer/history2.vue b/src/components/poplayer/history2.vue
index 641ad0c..584f496 100644
--- a/src/components/poplayer/history2.vue
+++ b/src/components/poplayer/history2.vue
@@ -34,6 +34,8 @@
     };
   },
   mounted() {
+    store.setNavigatorShow(false);
+    store.setMapToolShow(false);
     window.mapapi.getView().setCenter([4.606512, 2.621472]);
     addHistoryLayer(this.currentValue);
   },
@@ -44,6 +46,10 @@
     },
     close() {
       store.setHistoryShow(false);
+      window.mapapi.removeLayer(this.$global.historyLayer);
+      window.mapapi.getView().setCenter([116.505348, 39.795592]);
+      store.setNavigatorShow(true);
+      store.setMapToolShow(true);
     },
   },
 };
@@ -51,7 +57,7 @@
 <style scoped>
 .colseBtn {
   position: absolute;
-  top: 5vh;
+  top: 3vh;
   right: 20px;
 }
 
@@ -63,7 +69,7 @@
 .listBox {
   position: absolute;
   right: 20px;
-  bottom: 10px;
+  bottom: 0.5rem;
   background-color: #373737;
 }
 

--
Gitblit v1.9.3