File tree Expand file tree Collapse file tree 4 files changed +3
-4
lines changed
Expand file tree Collapse file tree 4 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ export default {
108108 methods: {
109109 ... mapActions ([
110110 ' increment' , // map `this.increment()` to `this.$store.dispatch('increment')`
111-
111+
112112 // `mapActions` also supports payloads:
113113 ' incrementBy' // map `this.incrementBy(amount)` to `this.$store.dispatch('incrementBy', amount)`
114114 ]),
Original file line number Diff line number Diff line change @@ -58,4 +58,3 @@ computed: {
5858 }
5959}
6060```
61-
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ getters: {
7878store .getters .getTodoById (2 ) // -> { id: 2, text: '...', done: false }
7979```
8080
81-
8281### The ` mapGetters ` Helper
8382
8483The ` mapGetters ` helper simply maps store getters to local computed properties:
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ mutations: {
4848 }
4949}
5050```
51+
5152``` js
5253store .commit (' increment' , {
5354 amount: 10
@@ -147,7 +148,7 @@ export default {
147148 methods: {
148149 ...mapMutations([
149150 'increment', // map ` this .increment ()` to ` this .$store .commit (' increment' )`
150-
151+
151152 // ` mapMutations` also supports payloads:
152153 'incrementBy' // map ` this .incrementBy (amount)` to ` this .$store .commit (' incrementBy' , amount)`
153154 ]),
You can’t perform that action at this time.
0 commit comments