@zgfe/business-lib 1.1.11 → 1.1.12

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.
Files changed (2) hide show
  1. package/es/utils/ajax.js +2 -2
  2. package/package.json +2 -2
package/es/utils/ajax.js CHANGED
@@ -59,7 +59,7 @@ function responseErrorHandler(url, apiResult, errorTitle, notifyType) {
59
59
  }
60
60
 
61
61
  if (!apiResult.code) {
62
- notification[notifyType || 'error']({
62
+ notification.error({
63
63
  message: "\u63A5\u53E3\u54CD\u5E94\u7ED3\u6784\u5F02\u5E38"
64
64
  });
65
65
  throw new Error('接口响应结构异常,缺少code');
@@ -77,7 +77,7 @@ function responseErrorHandler(url, apiResult, errorTitle, notifyType) {
77
77
 
78
78
  if (!flag) {
79
79
  message = apiResult.msg || message;
80
- notification.error({
80
+ notification[notifyType || 'error']({
81
81
  message: errorTitle || "\u8BF7\u6C42\u9519\u8BEF",
82
82
  description: message
83
83
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -60,5 +60,5 @@
60
60
  "react": "^16.12.0 || ^17.0.0",
61
61
  "yorkie": "^2.0.0"
62
62
  },
63
- "gitHead": "cd765a91987b55cbcbb8694e72dcf0cf10fbfeb3"
63
+ "gitHead": "5b2d20352f9fbb9919f21397c60a21aa55b9bd7f"
64
64
  }