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/index.ts | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/store/index.ts b/src/store/index.ts
index d536696..65f45ea 100644
--- a/src/store/index.ts
+++ b/src/store/index.ts
@@ -6,6 +6,7 @@
import { LayerType } from '/@/types/mapLayer'
import { WaylineFile } from '/@/types/wayline'
import { DevicesCmdExecuteInfo } from '/@/types/device-cmd'
+import createPersistedState from 'vuex-persistedstate' // 导入库
import map from './map'
import common from './common'
@@ -251,6 +252,7 @@
map,
common
},
+ plugins: [createPersistedState()]
}
const rootStore = createStore(storeOptions)
--
Gitblit v1.9.3