mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 17:43:59 +00:00
15 lines
184 B
JavaScript
Executable File
15 lines
184 B
JavaScript
Executable File
import Vue from 'vue'
|
|
import Vuex from 'vuex'
|
|
|
|
Vue.use(Vuex)
|
|
|
|
export const state = () => ({
|
|
counter: 1
|
|
})
|
|
|
|
export const mutations = {
|
|
increment (state) {
|
|
state.counter++
|
|
}
|
|
}
|