浏览代码

Update count property

I think we want to update the `count` property on state object.
Žiga Vidic 9 年之前
父节点
当前提交
040734ba45
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/en/actions.md

+ 1 - 1
docs/en/actions.md

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