perf: 地图坐标json使用缓存

This commit is contained in:
fit2cloud-chenyw 2021-07-27 18:04:04 +08:00
parent c805f28089
commit a6a24db963

View 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
}