Skip to content

Instantly share code, notes, and snippets.

@mikeapr4
Last active May 1, 2019 18:59
Show Gist options
  • Save mikeapr4/45018d4f583e26ecea493b042dfda7e8 to your computer and use it in GitHub Desktop.
Save mikeapr4/45018d4f583e26ecea493b042dfda7e8 to your computer and use it in GitHub Desktop.
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