export const state = () => ({ counter: 1 }) export const mutations = { increment(state) { state.counter++ } }