Browse Source

Include mutations in the Vuex 4.x example

Altin Selimi 4 years ago
parent
commit
9da13d8d18
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 {
       count: 1
     }
+  },
+  mutations: {
+    increment (state) {
+      state.count++
+    }
   }
 })