Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- actions: {
- loadBooks({ commit }) {
- commit('startloading');
- return get('/api/books').then((response) => {
- commit('setBooks', response.data.books);
- commit('stopLoading');
- });
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement