Skip to content

Commit a0a7e1d

Browse files
authored
docs: missing mutation in code example (#1887)
1 parent 271022b commit a0a7e1d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/guide/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ const store = createStore({
2626
return {
2727
count: 1
2828
}
29+
},
30+
mutations: {
31+
increment (state) {
32+
state.count++
33+
}
2934
}
3035
})
3136

0 commit comments

Comments
 (0)