File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,11 @@ computed: {
209209 ... mapState ({
210210 a : state => state .some .nested .module .a ,
211211 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+ ])
213217},
214218methods: {
215219 ... mapActions ([
@@ -226,7 +230,11 @@ computed: {
226230 ... mapState (' some/nested/module' , {
227231 a : state => state .a ,
228232 b : state => state .b
229- })
233+ }),
234+ ... mapGetters (' some/nested/module' , [
235+ ' someGetter' , // -> this.someGetter
236+ ' someOtherGetter' , // -> this.someOtherGetter
237+ ])
230238},
231239methods: {
232240 ... mapActions (' some/nested/module' , [
You can’t perform that action at this time.
0 commit comments