Skip to content

Instantly share code, notes, and snippets.

@mercs600
Created April 5, 2020 16:11
Show Gist options
  • Save mercs600/0dfa3bcab6598af1f0ee715463c84778 to your computer and use it in GitHub Desktop.
Save mercs600/0dfa3bcab6598af1f0ee715463c84778 to your computer and use it in GitHub Desktop.
nuxt-exercise-6-vuex-register
export const state = () => ({
menu: []
})
export const mutations = {
setMenu(state, payload) {
state.menu = payload
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment