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 {
108
108
methods: {
109
109
... mapActions ([
110
110
' increment' , // map `this.increment()` to `this.$store.dispatch('increment')`
111
-
111
+
112
112
// `mapActions` also supports payloads:
113
113
' incrementBy' // map `this.incrementBy(amount)` to `this.$store.dispatch('incrementBy', amount)`
114
114
]),
Original file line number Diff line number Diff line change @@ -58,4 +58,3 @@ computed: {
58
58
}
59
59
}
60
60
```
61
-
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ getters: {
78
78
store .getters .getTodoById (2 ) // -> { id: 2, text: '...', done: false }
79
79
```
80
80
81
-
82
81
### The ` mapGetters ` Helper
83
82
84
83
The ` 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: {
48
48
}
49
49
}
50
50
```
51
+
51
52
``` js
52
53
store .commit (' increment' , {
53
54
amount: 10
@@ -147,7 +148,7 @@ export default {
147
148
methods: {
148
149
...mapMutations([
149
150
'increment', // map ` this .increment ()` to ` this .$store .commit (' increment' )`
150
-
151
+
151
152
// ` mapMutations` also supports payloads:
152
153
'incrementBy' // map ` this .incrementBy (amount)` to ` this .$store .commit (' incrementBy' , amount)`
153
154
]),
You can’t perform that action at this time.
0 commit comments