|
@@ -48,6 +48,7 @@ mutations: {
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
+
|
|
|
``` js
|
|
|
store.commit('increment', {
|
|
|
amount: 10
|
|
@@ -147,7 +148,7 @@ export default {
|
|
|
methods: {
|
|
|
...mapMutations([
|
|
|
'increment', // map `this.increment()` to `this.$store.commit('increment')`
|
|
|
-
|
|
|
+
|
|
|
// `mapMutations` also supports payloads:
|
|
|
'incrementBy' // map `this.incrementBy(amount)` to `this.$store.commit('incrementBy', amount)`
|
|
|
]),
|