### **Store.js**
~~~
export default new Vuex.Store({
state: {
position: {},
},
getters: {
position: (state) => {
return state.position
}
},
mutations: {
pushPosition(state, position) {
state.position[position['name']] = position['position']
},
pushPosition({commit, state}, obj) {
commit('pushPosition', obj)
}
}
})
~~~