{
...
chainWebpack: config => {
config.plugins.delete('prefetch');
config.plugins.delete('preload');
},
...
}
const actions = {
getProducts({ commit, state, rootState }) {
if (state.page) doStuff() // чтение
commit('SET_PAGE', 2) // запись
}
}