mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-26 12:16:07 +00:00
Fixes image deletion failing in subdirectory.
Fixes #1092 Signed-off-by: Abijeet <abijeetpatro@gmail.com>
This commit is contained in:
parent
302b53562d
commit
eac82c47a5
@ -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 New Issue
Block a user