File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,11 @@ computed: {
209
209
... mapState ({
210
210
a : state => state .some .nested .module .a ,
211
211
b : state => state .some .nested .module .b
212
- })
212
+ }),
213
+ ... mapGetters ([
214
+ ' some/nested/module/someGetter' , // -> this['some/nested/module/someGetter']
215
+ ' some/nested/module/someOtherGetter' , // -> this['some/nested/module/someOtherGetter']
216
+ ])
213
217
},
214
218
methods: {
215
219
... mapActions ([
@@ -226,7 +230,11 @@ computed: {
226
230
... mapState (' some/nested/module' , {
227
231
a : state => state .a ,
228
232
b : state => state .b
229
- })
233
+ }),
234
+ ... mapGetters (' some/nested/module' , [
235
+ ' someGetter' , // -> this.someGetter
236
+ ' someOtherGetter' , // -> this.someOtherGetter
237
+ ])
230
238
},
231
239
methods: {
232
240
... mapActions (' some/nested/module' , [
You can’t perform that action at this time.
0 commit comments