Modules Vuex Store

// Function allows multiple state instances
export const state = () => ({
  items: []
})

export const mutations = {
  add (state, item) {
    state.items.push(item)
  }
}