Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. actions: {
  2. loadBooks({ commit }) {
  3. commit('startLoading');
  4. get('/api/books').then((response) => {
  5. commit('setBooks', response.data.books);
  6. commit('stopLoading');
  7. });
  8. },
  9. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement