Nuxt/test/fixtures/basic/store/index.js
2017-05-21 15:45:21 +02:00

15 lines
184 B
JavaScript
Executable File

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