diff --git a/frontend/pages/notes.vue b/frontend/pages/notes.vue index 586b26a..9e76a41 100644 --- a/frontend/pages/notes.vue +++ b/frontend/pages/notes.vue @@ -70,14 +70,19 @@ export default { ], }), mounted() { - this.$axios.get('/notes').then((e) => { - this.notes = e.data - this.loading = false - }) + this.loadNotes() }, methods: { + async loadNotes() { + await this.$axios.get('/notes').then((e) => { + this.notes = e.data + this.loading = false + }) + }, editItem(item) {}, - deleteItem(item) {}, + async deleteItem(item) { + await this.$axios.delete(`/notes/${item.uuid}`).then(this.loadNotes) + }, format, }, }