From f5b79b2aca3a4c70e4fdd9f8541d2ef833912ed0 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 04 Jan 2022 17:05:42 +0800
Subject: [PATCH] +切换2.5  3 d 关闭弹窗

---
 src/store/modules/mobile.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/store/modules/mobile.js b/src/store/modules/mobile.js
index 471312e..9c145ef 100644
--- a/src/store/modules/mobile.js
+++ b/src/store/modules/mobile.js
@@ -110,6 +110,8 @@
     // },
     //切换2D和2.5D
     MSET_DIMENSION(state, data) {
+      //关闭弹窗
+
       //3d,2.5d转换事件
       state.dimension = data;
       if (data == "3D") {
@@ -193,8 +195,6 @@
     },
     setMobileWindows({ state, commit, dispatch }, data) {
       // 打开随地图移动窗口
-      // 关闭前一个弹窗?
-      dispatch("closeMobileWindowsDom");
       let clas, Flys;
       const nowHeight = Math.ceil(
         state.mviewer.camera.positionCartographic.height
@@ -440,6 +440,8 @@
       // console.log(global.DC.Namespace.Cesium.Matrix4.IDENTITY)
     },
     MSET_DIMENSIONS({ state, commit, dispatch }, val) {
+      //关闭弹窗
+      dispatch("closeMobileWindowsDom");
       //3d,2.5d转换事件
       commit("MSET_DIMENSION", val);
       //控制高度

--
Gitblit v1.9.3