From a7e6761ba0cfccdf33ed552eb2d3b783c8e4ab4a Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 16 Apr 2025 20:49:12 +0800
Subject: [PATCH] feat:事件弹窗显示调整

---
 src/store/modules/common.js |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/src/store/modules/common.js b/src/store/modules/common.js
index 8e0a1ef..4a97c4a 100644
--- a/src/store/modules/common.js
+++ b/src/store/modules/common.js
@@ -4,13 +4,15 @@
  * @LastEditors: shuishen 1109946754@qq.com
  * @LastEditTime: 2025-04-03 12:01:58
  * @FilePath: \command-center-dashboard\src\store\modules\common.js
- * @Description: 
- * 
- * Copyright (c) 2025 by shuishen, All Rights Reserved. 
+ * @Description:
+ *
+ * Copyright (c) 2025 by shuishen, All Rights Reserved.
  */
 import { setStore, getStore, removeStore } from 'utils/store'
 import website from '@/config/website'
+import cesiumOptions from '@/utils/cesium-tsa'
 
+const { loadLAYER } = cesiumOptions()
 const common = {
   state: {
     language: getStore({ name: 'language' }) || 'zh-cn',
@@ -19,6 +21,8 @@
     isMenu: true,
     isSearch: false,
     isRefresh: true,
+    mqttState: null, // mqtt 实例
+    clientId: null, // 客户端ID实例
     isLock: getStore({ name: 'isLock' }),
     colorName: getStore({ name: 'colorName' }) || '#2C77F1',
     themeName: getStore({ name: 'themeName' }) || 'theme-go',
@@ -34,6 +38,16 @@
     },
   },
   mutations: {
+    setMapSetting: (state, data) => {
+      state.mapSetting = data
+      loadLAYER()
+    },
+    SET_MQTT_STATE (state, mqttState) {
+      state.mqttState = mqttState
+    },
+    SET_CLIENT_ID (state, id) {
+      state.clientId = id
+    },
     SET_LANGUAGE: (state, language) => {
       state.language = language
       setStore({

--
Gitblit v1.9.3