Created
April 14, 2019 00:51
-
-
Save mikeapr4/c3556e3391b4b82a11a4e87d70735008 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
mutactions: { | |
async loadBooks({ state }) { | |
state.loading += 1; | |
const response = await get('/api/books'); | |
state.books = response.data.books; | |
state.loading -= 1; | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please fix:
mutactions -> mutations