mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +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
|