From 81773ab04fd259e893c2d7f08dbdc9be772d01c4 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 21 Dec 2021 17:18:45 +0800
Subject: [PATCH] +,请求数据,弹框显示,优化代码长度

---
 src/store/getters.js |   30 +++++++++++++++++++++++++++---
 1 files changed, 27 insertions(+), 3 deletions(-)

diff --git a/src/store/getters.js b/src/store/getters.js
index a7e07d6..4e96c2d 100644
--- a/src/store/getters.js
+++ b/src/store/getters.js
@@ -1,9 +1,33 @@
+// 手机端
+const mobile = {
+    mviewer: state => state.mobile.mviewer,
+    mBigPopup: state => state.mobile.mBigPopup,
+    popupOurOpenData: state => state.mobile.popupOurOpenData,
+    popupTableName: state => state.mobile.popupTableName,
+    mBigPopupAfter: state => state.mobile.mBigPopupAfter,
+    iconHide: state => state.mobile.iconHide,
+    MobileWindowsHide: state => state.mobile.MobileWindowsHide,//随地图移动窗口
+    MobileWindowChangeData: state => state.mobile.MobileWindowChangeData,//随地图移动窗口
+    popupsDom: state => state.mobile.popupsDom,
+    query: state => state.mobile.query,
+    openmobileGoTo: state => state.mobile.openmobileGoTo,
+    openmobilePanorama: state => state.mobile.openmobilePanorama,
+    MobileWindowsHideFixed: state => state.mobile.MobileWindowsHideFixed,//固定窗口
+    MobileWindowChangeDataFixed: state => state.mobile.MobileWindowChangeDataFixed,//固定窗口
+}
 const getters = {
+    ...mobile,
     viewer: state => state.viewer.viewer,
     popupBgUrl: state => state.popupParams.popupBgUrl,
     pupupQRUrl: state => state.popupParams.pupupQRUrl,
-    mviewer: state => state.mobile.mviewer,
-    mBigPopup: state => state.mobile.mBigPopup,
-    mBigPopupAfter: state => state.mobile.mBigPopupAfter
+    pointPosition: state => state.popupParams.pointPosition,
+    terminus: state => state.popupParams.terminus,
+    startingPoint: state => state.popupParams.startingPoint,
+    stateName: state => state.popupParams.stateName,
+    siteName: state => state.popupParams.siteName,
+    introduceText: state => state.popupParams.introduceText,
+    panoramaUrl: state => state.popupParams.panoramaUrl,
+    detailsPopup: state => state.popupParams.detailsPopup,
+    panoramaPopup: state => state.popupParams.panoramaPopup
 }
 export default getters

--
Gitblit v1.9.3