25 lines
383 B
JavaScript
25 lines
383 B
JavaScript
|
export const state = () => ({
|
||
|
siteNav: [],
|
||
|
socialNav: [],
|
||
|
})
|
||
|
|
||
|
export const getters = {
|
||
|
siteNav: state => {
|
||
|
return state.siteNav
|
||
|
},
|
||
|
|
||
|
socialNav: state => {
|
||
|
return state.socialNav
|
||
|
},
|
||
|
}
|
||
|
|
||
|
export const mutations = {
|
||
|
updateSiteNav (state, navItems) {
|
||
|
state.siteNav = navItems
|
||
|
},
|
||
|
|
||
|
updateSocialNav (state, socialItems) {
|
||
|
state.socialNav = socialItems
|
||
|
},
|
||
|
}
|