From 2888173145d91e465a25bea276acaa41f9a7b124 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Tue, 15 Apr 2025 16:39:08 +0800
Subject: [PATCH] feat: 控制联调10%

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

diff --git a/src/store/modules/common.js b/src/store/modules/common.js
index 0b24cde..4a97c4a 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',
@@ -40,6 +42,12 @@
       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