Selaa lähdekoodia

Update count property

I think we want to update the `count` property on state object.
Žiga Vidic 9 vuotta sitten
vanhempi
commit
040734ba45
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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: {