瀏覽代碼

Merge pull request #110 from yanni4night/patch-1

修正mutation内操作state的行为
Evan You 9 年之前
父節點
當前提交
082e319c74
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/zh-cn/actions.md

+ 1 - 1
docs/zh-cn/actions.md

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