ns-base-module 1.1.77 → 1.1.78

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.
@@ -26,6 +26,7 @@ import Input from "../Entry/components/Input";
26
26
  import CopyCol from "../CopyCol";
27
27
  import { cloneDeep, find, flattenDeep, get } from "lodash";
28
28
  import "../../style/components/FilterPopover.scss";
29
+ import errorMsg from "../utils/errorMsg";
29
30
  import { initLang } from "../utils/language";
30
31
  // import request from "../utils/request";
31
32
 
@@ -149,6 +150,9 @@ var Filter = function Filter(props) {
149
150
  });
150
151
  case 11:
151
152
  res = _context.sent;
153
+ if ((res === null || res === void 0 ? void 0 : res.code) == 500) {
154
+ errorMsg(res);
155
+ }
152
156
  datas = get(res, "data.rows", []) || [];
153
157
  arr = [];
154
158
  if (dataIndex) {
@@ -176,7 +180,7 @@ var Filter = function Filter(props) {
176
180
  }
177
181
  setTotal(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.total);
178
182
  page.current.total = res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.total;
179
- case 21:
183
+ case 22:
180
184
  case "end":
181
185
  return _context.stop();
182
186
  }