瀏覽代碼

change "INCREMENT" to "increment" (#357)

曾小涛 8 年之前
父節點
當前提交
17d4f01d9c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/en/mutations.md

+ 2 - 2
docs/en/mutations.md

@@ -35,7 +35,7 @@ mutations: {
 }
 ```
 ``` js
-store.commit('INCREMENT', 10)
+store.commit('increment', 10)
 ```
 
 In most cases, the payload should be an object so that it can contain multiple fields, and the recorded mutation will also be more descriptive:
@@ -69,7 +69,7 @@ When using object-style commit, the entire object will be passed as the payload
 
 ``` js
 mutations: {
-  INCREMENT (state, payload) {
+  increment (state, payload) {
     state.count += payload.amount
   }
 }