mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 14:45:15 +00:00
17 lines
199 B
JavaScript
17 lines
199 B
JavaScript
|
import Vue from 'vue'
|
||
|
import Vuex from 'vuex'
|
||
|
|
||
|
Vue.use(Vuex)
|
||
|
|
||
|
export const state = () => {
|
||
|
return {
|
||
|
counter: 1
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export const mutations = {
|
||
|
increment (state) {
|
||
|
state.counter++
|
||
|
}
|
||
|
}
|