Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mutactions: {
- async loadBooks({ state }) {
- state.loading += 1;
- const response = await get('/api/books');
- state.books = response.data.books;
- state.loading -= 1;
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement