From 2800fa4f32f3900509cb4d6eefaf2bfaf54efdd7 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Mon, 21 Apr 2025 18:29:09 +0800
Subject: [PATCH] fix: 天气显示

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

diff --git a/src/store/modules/common.js b/src/store/modules/common.js
index 0b24cde..54b519d 100644
--- a/src/store/modules/common.js
+++ b/src/store/modules/common.js
@@ -21,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,12 +36,22 @@
       visual: '3D',
       isDark: false,
     },
+    isHideBottomIcon: true,
   },
   mutations: {
+    setHideBottomIcon (state, data) {
+      state.isHideBottomIcon = data
+    },
     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