GuLiMmo
2024-08-27 1728006c7507dc973e684e0b03040304fa05e08a
src/store/index.ts
@@ -9,6 +9,7 @@
import createPersistedState from 'vuex-persistedstate' // 导入库
import map from './map'
import common from './common'
import user from './user'
const initStateFunc = () => ({
  Layers: [
@@ -267,12 +268,13 @@
  actions,
  modules: {
    map,
    common
    common,
    user
  },
  plugins: [createPersistedState({
    storage: window.sessionStorage,
    key: 'drone-client',
    paths: ['map', 'common'],
    paths: ['map', 'common', 'user'],
  })]
}