mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 08:45:57 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
let url = window.baseUrl(`/images/${this.selectedImage.id}`);
|
||||||
this.$http.delete(`/images/${this.selectedImage.id}`).then(resp => {
|
this.$http.delete(url).then(resp => {
|
||||||
this.images.splice(this.images.indexOf(this.selectedImage), 1);
|
this.images.splice(this.images.indexOf(this.selectedImage), 1);
|
||||||
this.selectedImage = false;
|
this.selectedImage = false;
|
||||||
this.$events.emit('success', trans('components.image_delete_success'));
|
this.$events.emit('success', trans('components.image_delete_success'));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user