aboutsummaryrefslogtreecommitdiff
path: root/src/site/components/grid
diff options
context:
space:
mode:
Diffstat (limited to 'src/site/components/grid')
-rw-r--r--src/site/components/grid/Grid.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/site/components/grid/Grid.vue b/src/site/components/grid/Grid.vue
index e136f90..027bdf2 100644
--- a/src/site/components/grid/Grid.vue
+++ b/src/site/components/grid/Grid.vue
@@ -170,13 +170,13 @@ export default {
hasIcon: true,
onConfirm: async () => {
try {
- const response = await this.axios.delete(`${this.config.baseURL}/file/${file.id}`);
+ const response = await this.$axios.$delete(`file/${file.id}`);
this.showWaterfall = false;
this.files.splice(index, 1);
this.$nextTick(() => {
this.showWaterfall = true;
});
- return this.$toast.open(response.data.message);
+ return this.$toast.open(response.message);
} catch (error) {
return this.$onPromiseError(error);
}