mutations.js 169 B

12345678910
  1. import { INCREMENT, DECREMENT } from './mutation-types'
  2. export default {
  3. [INCREMENT] (state) {
  4. state.count++
  5. },
  6. [DECREMENT] (state) {
  7. state.count--
  8. }
  9. }