From e7c6c4eecddae9515b0cd1be68335690843df3d1 Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Wed, 02 Mar 2022 15:19:23 +0800
Subject: [PATCH] +自定义标签的添加和删除

---
 src/store/modules/mobile.js |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/store/modules/mobile.js b/src/store/modules/mobile.js
index 40ec7e2..831c8f3 100644
--- a/src/store/modules/mobile.js
+++ b/src/store/modules/mobile.js
@@ -439,8 +439,20 @@
         state.dimensionData.pitch
       );
       if (!state.MobileWindowsHide) {
+        //关闭弹窗
         commit("MSET_MOBILEWINDOWSHIDE", true);
       }
+      if (
+        state.select.overlay != undefined &&
+        data.query.fromTo != "mapClick"
+      ) {
+        //关闭绿色边框
+        state.select.overlay.setStyle({
+          material: state.select.color,
+          outline: false,
+        });
+        commit("mset_changeSelect", [undefined, undefined]);
+      }
       // console.log(state.dimension);
       if (state.dimension != "2.5D") {
         // if (true) {

--
Gitblit v1.9.3