ztxkui 2.7.2 → 2.7.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.
@@ -181,7 +181,7 @@ function EnhanceSelect(_a) {
181
181
  : 30, page: 1 }, outParams), searchParams),
182
182
  })
183
183
  .then(function (resData) {
184
- var _a, _b, _c;
184
+ var _a, _b, _c, _d;
185
185
  if (fetchIdClosure < fetchId.current) {
186
186
  return;
187
187
  }
@@ -195,8 +195,11 @@ function EnhanceSelect(_a) {
195
195
  if ((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.records) {
196
196
  result = res.data.records || [];
197
197
  }
198
+ else if (Array.isArray((_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.data)) {
199
+ result = res.data.data || [];
200
+ }
198
201
  else {
199
- result = ((_c = (_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.records) || [];
202
+ result = ((_d = (_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.records) || [];
200
203
  }
201
204
  }
202
205
  // 如果根据id查过了,那么需要把这些数据添加到自定义合并数组中
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "2.7.2",
3
+ "version": "2.7.3",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",