Skip to content

Commit 0334aab

Browse files
authored
docs: increment argument 'value' need default value (#995)
1 parent 80c9b86 commit 0334aab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide/advanced/vuex.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const createVuexStore = (initialState) =>
158158
...initialState
159159
},
160160
mutations: {
161-
increment(state, value) {
161+
increment(state, value = 1) {
162162
state.count += value
163163
}
164164
}

0 commit comments

Comments
 (0)