Display notes

This commit is contained in:
2020-07-04 18:43:09 +02:00
parent 09d18c1d02
commit bcc6f8e29f
5 changed files with 78 additions and 26 deletions
+2 -3
View File
@@ -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')
})