We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88281d7 commit 09ee1a4Copy full SHA for 09ee1a4
docs/cookbook/store.md
@@ -102,7 +102,7 @@ For use with Nuxt, there are few key provisions:
102
103
@Action
104
async getUsers() {
105
- const users = $axios.$get('/users')
+ const users = await $axios.$get('/users')
106
this.setUsers(users)
107
}
108
@@ -146,8 +146,8 @@ export const mutations: MutationTree<RootState> = {
146
147
148
export const actions: ActionTree<RootState, RootState> = {
149
- fetchThings({ commit }) {
150
- const things = this.$axios.$get('/things')
+ async fetchThings({ commit }) {
+ const things = await this.$axios.$get('/things')
151
console.log(things)
152
commit('CHANGE_NAME', 'New name')
153
},
0 commit comments