Nuxt/test/fixtures/basic/store/index.js

17 lines
199 B
JavaScript
Executable File

import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export const state = () => {
return {
counter: 1
}
}
export const mutations = {
increment (state) {
state.counter++
}
}