From 54849757852f6ab40eb17afbd03d1d839b60a38d Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Mon, 13 Nov 2023 17:09:15 +0800
Subject: [PATCH] 重复定时和连续执行
---
src/store/index.ts | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/store/index.ts b/src/store/index.ts
index 65f45ea..0c1c5d0 100644
--- a/src/store/index.ts
+++ b/src/store/index.ts
@@ -77,7 +77,10 @@
visible: false,
gateway_sn: '',
is_dock: false,
- payloads: null
+ payloads: null,
+ device_domain: '',
+ device_sub_type: '',
+ device_type: ''
} as OSDVisible,
waylineInfo: {
@@ -236,7 +239,6 @@
}
})
state.layerBaseInfo = obj
- console.log('state.layerBaseInfo', state.layerBaseInfo)
},
getLayerInfo ({ state }, id:string) {
return state.layerBaseInfo[id]
@@ -252,7 +254,11 @@
map,
common
},
- plugins: [createPersistedState()]
+ plugins: [createPersistedState({
+ storage: window.sessionStorage,
+ key: 'drone-client',
+ paths: ['map', 'common'],
+ })]
}
const rootStore = createStore(storeOptions)
--
Gitblit v1.9.3