mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
15 lines
183 B
JavaScript
15 lines
183 B
JavaScript
import Vuex from 'vuex'
|
|
|
|
const store = new Vuex.Store({
|
|
state: {
|
|
counter: 0
|
|
},
|
|
mutations: {
|
|
increment (state) {
|
|
state.counter++
|
|
}
|
|
}
|
|
})
|
|
|
|
export default store
|