Test card layout
This commit is contained in:
@@ -7,7 +7,7 @@ export const mutations = {
|
||||
state.notes = notes
|
||||
},
|
||||
add(state, note) {
|
||||
state.notes.push(note)
|
||||
state.notes.unshift(note)
|
||||
},
|
||||
delete(state, uuid) {
|
||||
state.notes = state.notes.filter((e) => e.uuid !== uuid)
|
||||
@@ -16,8 +16,7 @@ export const mutations = {
|
||||
|
||||
export const actions = {
|
||||
async load({ commit }) {
|
||||
await new Promise((resolve) => setTimeout(resolve, 2000))
|
||||
|
||||
await new Promise((resolve) => setTimeout(resolve, 600))
|
||||
this.$axios.get('/notes').then(({ data }) => commit('set', data))
|
||||
},
|
||||
// FIXME: make the api send the new date back
|
||||
|
||||
Reference in New Issue
Block a user