husq
2023-09-22 207850ced98eaed671171cd892215d22eeec6a78
src/store/index.ts
@@ -236,7 +236,6 @@
      }
    })
    state.layerBaseInfo = obj
    console.log('state.layerBaseInfo', state.layerBaseInfo)
  },
  getLayerInfo ({ state }, id:string) {
    return state.layerBaseInfo[id]
@@ -252,7 +251,11 @@
    map,
    common
  },
  plugins: [createPersistedState()]
  plugins: [createPersistedState({
    storage: window.sessionStorage,
    key: 'drone-client',
    paths: ['map', 'common'],
  })]
}
const rootStore = createStore(storeOptions)