From d834db340790851078fd384dbccbfa21d2d8b5df Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 10 Feb 2022 09:02:34 +0800
Subject: [PATCH] +解决(点击建筑后,生成的绿布,不会被点击其他关闭)

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

diff --git a/src/store/modules/mobile.js b/src/store/modules/mobile.js
index 40ec7e2..b8a2e34 100644
--- a/src/store/modules/mobile.js
+++ b/src/store/modules/mobile.js
@@ -439,8 +439,21 @@
         state.dimensionData.pitch
       );
       if (!state.MobileWindowsHide) {
+        //关闭弹窗
         commit("MSET_MOBILEWINDOWSHIDE", true);
       }
+      console.log(data);
+      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