Vuex Store
A blog
module is avaliable to access the authors and categories with a set of actions and mutations.
Actions
blog/setAuthors
fetch authors and save them to theauthors
stateblog/setCategories
fetch categories and save them to thecategories
state
Mutations
blog/SET_AUTHORS
save the given authors to theauthors
stateblog/SET_CATEGOIRES
save the given categories to thecategories
state