Fixes image deletion failing in subdirectory.
Fixes #1092 Signed-off-by: Abijeet <abijeetpatro@gmail.com>
This commit is contained in:
parent
302b53562d
commit
eac82c47a5
1 changed files with 2 additions and 2 deletions
|
@ -159,8 +159,8 @@ const methods = {
|
|||
});
|
||||
return;
|
||||
}
|
||||
|
||||
this.$http.delete(`/images/${this.selectedImage.id}`).then(resp => {
|
||||
let url = window.baseUrl(`/images/${this.selectedImage.id}`);
|
||||
this.$http.delete(url).then(resp => {
|
||||
this.images.splice(this.images.indexOf(this.selectedImage), 1);
|
||||
this.selectedImage = false;
|
||||
this.$events.emit('success', trans('components.image_delete_success'));
|
||||
|
|
Loading…
Reference in a new issue