mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
perf: 地图坐标json使用缓存
This commit is contained in:
parent
c805f28089
commit
a6a24db963
25
frontend/src/store/modules/map.js
Normal file
25
frontend/src/store/modules/map.js
Normal file
@ -0,0 +1,25 @@
|
||||
const state = {
|
||||
geoMap: {}
|
||||
}
|
||||
|
||||
const mutations = {
|
||||
|
||||
SET_GEO: (state, { key, value }) => {
|
||||
state.geoMap[key] = value
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const actions = {
|
||||
setGeo({ commit }, data) {
|
||||
commit('SET_GEO', data)
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state,
|
||||
mutations,
|
||||
actions
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user