mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-23 01:32:15 +00:00
routes refactoring
This commit is contained in:
@@ -150,7 +150,7 @@
|
||||
events.$on('action:confirmed', data => {
|
||||
if (data.operation === 'delete-invoice') {
|
||||
|
||||
axios.delete(`/api/oasis/invoices/${data.id}`)
|
||||
axios.delete(`/api/invoices/${data.id}`)
|
||||
.then(() => this.goTo(this.currentFolder.location))
|
||||
.catch(() => this.$isSomethingWrong())
|
||||
}
|
||||
@@ -159,7 +159,7 @@
|
||||
events.$on('action:confirmed', data => {
|
||||
if (data.operation === 'delete-client') {
|
||||
|
||||
axios.delete(`/api/oasis/clients/${data.id}`)
|
||||
axios.delete(`/api/clients/${data.id}`)
|
||||
.then(() => this.goTo(this.currentFolder.location))
|
||||
.catch(() => this.$isSomethingWrong())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user