2019-02-02 16:41:00 +00:00
|
|
|
export const state = () => ({
|
|
|
|
siteNav: [],
|
|
|
|
socialNav: [],
|
|
|
|
})
|
|
|
|
|
2019-02-12 11:20:22 +00:00
|
|
|
// export const actions = {
|
|
|
|
// load ({ commit }) {
|
|
|
|
// return new Promise(resolve => {
|
|
|
|
// setTimeout(() => {
|
|
|
|
// commit('updateSiteNav', SITE_NAV)
|
|
|
|
// commit('updateSocialNav', SOCIAL_NAV)
|
|
|
|
// resolve()
|
|
|
|
// }, 300)
|
|
|
|
// })
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//
|
2019-02-02 16:41:00 +00:00
|
|
|
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
|
|
|
|
},
|
|
|
|
}
|