@hzab/data-model 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/package.json +1 -1
- package/src/data-model.js +2 -2
package/README.md
CHANGED
package/package.json
CHANGED
package/src/data-model.js
CHANGED
|
@@ -227,7 +227,7 @@ class DataModel {
|
|
|
227
227
|
return new Promise((resolve, reject) => {
|
|
228
228
|
const apiUrl = this.getApiUrl(this.deleteApi, _params, ctx);
|
|
229
229
|
this.axios
|
|
230
|
-
.delete(apiUrl, { ...this.axiosConf,
|
|
230
|
+
.delete(apiUrl, { ...this.axiosConf, params: _params })
|
|
231
231
|
.then((response) => {
|
|
232
232
|
this.handleRes(
|
|
233
233
|
response,
|
|
@@ -252,7 +252,7 @@ class DataModel {
|
|
|
252
252
|
return new Promise((resolve, reject) => {
|
|
253
253
|
const apiUrl = this.getApiUrl(this.multipleDeleteApi, _params, ctx);
|
|
254
254
|
this.axios
|
|
255
|
-
.delete(apiUrl, { ...this.axiosConf,
|
|
255
|
+
.delete(apiUrl, { ...this.axiosConf, params: _params })
|
|
256
256
|
.then((response) => {
|
|
257
257
|
this.handleRes(
|
|
258
258
|
response,
|