export const state = () => ({}) export const actions = { async nuxtServerInit ({ commit }, { $axios }) { const { siteNav, socialNav } = await $axios.$get('/api/v1/navigation') commit('navigation/updateSiteNav', siteNav) commit('navigation/updateSocialNav', socialNav) } }