async nuxtServerInit({commit}){
await this.$axios
.get(apiURL + '/section')
.then((result) => {
commit('SET_SECTION_LIST', result.data)
})
.catch((error) => {
commit('SET_ERRORS', error)
})
}
If you are using the Modules mode of the Vuex store, only the primary module (in store/index.js) will receive this action. You'll need to chain your module actions from there.
async nuxtServerInit({ dispatch }) {
await dispatch('core/load')
}