marc-leopold/store/index.js

12 lines
291 B
JavaScript
Raw Normal View History

2019-02-02 16:51:24 +00:00
export const state = () => ({})
2019-02-12 11:20:22 +00:00
export const actions = {
async nuxtServerInit ({ commit }, { $axios }) {
const { siteNav, socialNav } = await $axios.$get('/api/v1/navigation')
commit('navigation/updateSiteNav', siteNav)
commit('navigation/updateSocialNav', socialNav)
}
}