Skip to content

Commit

Permalink
docs: increment argument 'value' need default value (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
likui628 authored Oct 7, 2021
1 parent 80c9b86 commit 0334aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/advanced/vuex.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const createVuexStore = (initialState) =>
...initialState
},
mutations: {
increment(state, value) {
increment(state, value = 1) {
state.count += value
}
}
Expand Down

0 comments on commit 0334aab

Please sign in to comment.