From 67338a9d75216fd17bf5d679e585c21a9f10a451 Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Thu, 21 Sep 2023 19:01:45 +0800
Subject: [PATCH] webSocket取消订阅、订阅发布修改

---
 src/store/common.ts |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/store/common.ts b/src/store/common.ts
index ea97352..a733a98 100644
--- a/src/store/common.ts
+++ b/src/store/common.ts
@@ -3,6 +3,7 @@
 const state = () => ({
   projectId: null as string | null,
   dockSns: null as string | null,
+  snList: [] as string[]
 })
 export type RootStateType = ReturnType<typeof state>
 const mutations: MutationTree<RootStateType> = {
@@ -12,6 +13,10 @@
 
   SET_DOCK_SN (state, dockSns: string) {
     state.dockSns = dockSns
+  },
+
+  SET_SN_LIST (state, snList: string[]) {
+    state.snList = snList
   }
 }
 export default {

--
Gitblit v1.9.3