mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 17:43:59 +00:00
85615360b4
[release] Co-authored-by: Pooya Parsa <pyapar@gmail.com>
19 lines
288 B
JavaScript
19 lines
288 B
JavaScript
import Vue from 'vue'
|
|
import Vuex from 'vuex'
|
|
|
|
Vue.use(Vuex)
|
|
|
|
// eslint-disable-next-line import/no-named-as-default-member
|
|
const store = () => new Vuex.Store({
|
|
state: {
|
|
counter: 0
|
|
},
|
|
mutations: {
|
|
increment (state) {
|
|
state.counter++
|
|
}
|
|
}
|
|
})
|
|
|
|
export default store
|