Browse Source

docs: include mutations in the Vuex 4.x example (#1868)

Kia King Ishii 4 years ago
parent
commit
f79d3e3495
1 changed files with 5 additions and 0 deletions
  1. 5 0
      docs/guide/README.md

+ 5 - 0
docs/guide/README.md

@@ -47,6 +47,11 @@ const store = createStore({
     return {
     return {
       count: 1
       count: 1
     }
     }
+  },
+  mutations: {
+    increment (state) {
+      state.count++
+    }
   }
   }
 })
 })