Explorar o código

Update count property

I think we want to update the `count` property on state object.
Žiga Vidic %!s(int64=9) %!d(string=hai) anos
pai
achega
040734ba45
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/en/actions.md

+ 1 - 1
docs/en/actions.md

@@ -19,7 +19,7 @@ const vuex = new Vuex({
   },
   mutations: {
     INCREMENT (state, x) {
-      state += x
+      state.count += x
     }
   },
   actions: {