2017-05-13 17:15:53 +00:00
|
|
|
import Vue from 'vue'
|
|
|
|
import Vuex from 'vuex'
|
|
|
|
|
|
|
|
Vue.use(Vuex)
|
|
|
|
|
2017-05-21 13:45:21 +00:00
|
|
|
export const state = () => ({
|
|
|
|
counter: 1
|
|
|
|
})
|
2017-05-13 17:15:53 +00:00
|
|
|
|
|
|
|
export const mutations = {
|
|
|
|
increment (state) {
|
|
|
|
state.counter++
|
|
|
|
}
|
|
|
|
}
|