From a6a24db963b3f09f4ef11105ef600416ca0eadfb Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 27 Jul 2021 18:04:04 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=9C=B0=E5=9B=BE=E5=9D=90=E6=A0=87jso?= =?UTF-8?q?n=E4=BD=BF=E7=94=A8=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/store/modules/map.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 frontend/src/store/modules/map.js 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 +} +