Skip to content

Commit f79d3e3

Browse files
authored
docs: include mutations in the Vuex 4.x example (#1868)
2 parents 12aabe4 + 9da13d8 commit f79d3e3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/guide/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ const store = createStore({
4747
return {
4848
count: 1
4949
}
50+
},
51+
mutations: {
52+
increment (state) {
53+
state.count++
54+
}
5055
}
5156
})
5257

0 commit comments

Comments
 (0)