| | |
| | | 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' |
| | | |
| | |
| | | } |
| | | }) |
| | | state.layerBaseInfo = obj |
| | | console.log('state.layerBaseInfo', state.layerBaseInfo) |
| | | }, |
| | | getLayerInfo ({ state }, id:string) { |
| | | return state.layerBaseInfo[id] |
| | |
| | | map, |
| | | common |
| | | }, |
| | | plugins: [createPersistedState({ |
| | | storage: window.sessionStorage, |
| | | key: 'drone-client', |
| | | paths: ['map', 'common'], |
| | | })] |
| | | } |
| | | |
| | | const rootStore = createStore(storeOptions) |