This commit is contained in:
Matej Glasnák committed 2023-02-01 14:58:17 +01:00
1 parent 0cf30d75e3
commit 3902cbd601
5 files changed
+97 -6

No files matched your search

+3 -3
View File
@@ -119,7 +119,7 @@ export default {
},
async put(url: string, params = null, config?: any) {
return axios.put(url, params, config)
return axios.put(url, {data: params}, config)
.then(response => response.data)
.catch(error => Promise.reject(error))
},
@@ -133,7 +133,7 @@ export default {
},
async put_data(url: string, params = null, config?: any) {
return axios.put(url, params, config)
return axios.put(url, {data: params}, config)
.then(response => response.data.data)
.catch(error => Promise.reject(error.response || error))
},
@@ -141,7 +141,7 @@ export default {
async put_auth_data(url: string, params = null, config?: any) {
config = this._config(config)
return axios.put(url, params, config)
return axios.put(url, {data: params}, config)
.then(response => response.data.data)
.catch(error => Promise.reject(error.response || error))
},