@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 CHANGED
@@ -85,6 +85,8 @@ function Demo({ orgId }) {
85
85
  query: { orgId },
86
86
  },
87
87
  {
88
+ // 动态的 params 数据
89
+ effectParams: { orgId },
88
90
  // 动态 query 数据
89
91
  effectQuery: { orgId },
90
92
  // 动态数据监听的值
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hzab/data-model",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "data model",
5
5
  "main": "src",
6
6
  "scripts": {
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, ..._params })
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, ..._params })
255
+ .delete(apiUrl, { ...this.axiosConf, params: _params })
256
256
  .then((response) => {
257
257
  this.handleRes(
258
258
  response,