I have set up a state called ~/store/modules/general/index.js
Within this state, there are Actions named get_info and get_pages,
as well as states named info and pages.
When I use
...mapActions({
getInfo: 'modules/general/get_info'
getPages: 'modules/general/get_pages'
})
everything works fine. However, when I try to access it using
...mapState({
Info: 'modules/general/info'
Pages: 'modules/general/pages'
})
it returns undefined.
Finally, if I use
...mapState({
modules: 'modules'
})
this will return all my substates. Please help me resolve this issue.