Sfoglia il codice sorgente

Include mutations in the Vuex 4.x example

Altin Selimi 4 anni fa
parent
commit
9da13d8d18
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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++
+    }
   }
 })