I know how to use mapGetters in a single situation, but not both.
Example, I have firstRootGetter
inside store/index.js
, so I will call ...mapGetters(['firstRootGetter'])
in vue component.
If I have firstModuleGetter
and secondModuleGetter
inside store/modules/post.js
, I will call ...mapGetters('post', ['firstModuleGetter', 'secondModuleGetter'])
My question is, how do I call them in single ...mapGetters
. Is it possible?
Right now I have to write 2 lines to call them separately.