26 lines
285 B
JavaScript
26 lines
285 B
JavaScript
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
|
|
}
|
|
|