1
0
Эх сурвалжийг харах

docs: missing mutation in code example (#1887)

loongye 4 жил өмнө
parent
commit
a0a7e1d638

+ 5 - 0
docs/guide/index.md

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