From 9cc59c17892a7e69de54e06b5931e78c9b05551c Mon Sep 17 00:00:00 2001
From: zhuguifei <zhuguifei@zhuguifeideiMac.local>
Date: 星期二, 02 九月 2025 09:24:34 +0800
Subject: [PATCH] 添加mqtt登出
---
store/index.js | 22 +++++++++++++---------
1 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/store/index.js b/store/index.js
index ef969c7..c17daea 100644
--- a/store/index.js
+++ b/store/index.js
@@ -4,23 +4,27 @@
const store = new Vuex.Store({
state: {
- // 瀹氫箟cid榛樿鍊�
- cid: null
+ // 璁惧鍞竴鏍囪瘑锛屾帹閫佷娇鐢�
+ clientPushId: null,
+
},
mutations: {
- setCid(state, cid) {
- state.cid = cid;
+ setClientPushId(state, clientPushId) {
+ state.clientPushId = clientPushId;
},
+
},
actions: {
- setCid({ commit }, cid) {
- commit('setCid', cid);
+ setClientPushId({ commit }, clientPushId) {
+ commit('setClientPushId', clientPushId);
},
+
},
getters: {
- getCid(state) {
- return state.cid;
- }
+ getClientPushId(state) {
+ return state.clientPushId;
+ },
+
}
});
--
Gitblit v1.9.3