diff --git a/frontend/src/store/modules/map.js b/frontend/src/store/modules/map.js new file mode 100644 index 0000000000..65d41d3cfd --- /dev/null +++ b/frontend/src/store/modules/map.js @@ -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 +} +