mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-27 19:06:23 +08: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