Display notes
This commit is contained in:
@@ -24,9 +24,8 @@ export const mutations = {
|
||||
}
|
||||
|
||||
export const actions = {
|
||||
async load({ commit }) {
|
||||
await new Promise((resolve) => setTimeout(resolve, 600))
|
||||
this.$axios.get('/notes').then(({ data }) => {
|
||||
load({ commit }) {
|
||||
return this.$axios.get('/notes').then(({ data }) => {
|
||||
commit('set', data)
|
||||
commit('setInitialized')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user