move add/rm/edit event in eventController

This commit is contained in:
les
2020-01-31 14:56:31 +01:00
parent fa0c2fe468
commit c8f2c4b552
7 changed files with 185 additions and 165 deletions

View File

@@ -36,7 +36,7 @@ export default {
type: 'error'
})
const id = parent ? this.event.parentId : this.event.id
await this.$axios.delete(`/user/event/${id}`)
await this.$axios.delete(`/event/${id}`)
this.delEvent(Number(id))
this.$router.replace('/')
} catch (e) {