Last active
May 1, 2019 18:59
-
-
Save mikeapr4/45018d4f583e26ecea493b042dfda7e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
actions: { | |
loadBooks({ commit }) { | |
commit('startLoading'); | |
return get('/api/books').then((response) => { | |
commit('setBooks', response.data.books); | |
commit('stopLoading'); | |
}); | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment