12345678910111213141516171819202122232425262728293031323334353637 |
- import Vue from 'vue'
- import Vuex from '../../src'
- Vue.use(Vuex)
- const state = {
- count: 0
- }
- const mutations = {
- INCREMENT (state) {
- state.count++
- },
- DECREMENT (state) {
- state.count--
- }
- }
- export default new Vuex.Store({
- state,
- mutations
- })
|