... actions: { initStore: ({commit}) => { axios.get('static/products.json') .then((response) =>{ console.log(response.data.products); commit('SET_STORE', response.data.products ) }); } }, getters: { products: state => state.products } });