Browse Source

Merge pull request #110 from yanni4night/patch-1

修正mutation内操作state的行为
Evan You 9 năm trước cách đây
mục cha
commit
082e319c74
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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: {