diff options
| author | Pitu <[email protected]> | 2019-03-29 00:35:58 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2019-03-29 00:35:58 +0900 |
| commit | ea3e503d13b7be477c064b02b9b2e5a9ef06c9a9 (patch) | |
| tree | 8ffd0bef5e2e210ca28478d18c3876b73cc79784 /src/site/components/grid/Grid.vue | |
| parent | Added axios package (diff) | |
| download | host.fuwn.me-ea3e503d13b7be477c064b02b9b2e5a9ef06c9a9.tar.xz host.fuwn.me-ea3e503d13b7be477c064b02b9b2e5a9ef06c9a9.zip | |
Added middleware for pages and switched to $axios
Diffstat (limited to 'src/site/components/grid/Grid.vue')
| -rw-r--r-- | src/site/components/grid/Grid.vue | 4 |
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); } |