@bit-sun/business-component 2.2.15 → 2.2.16

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/dist/index.esm.js CHANGED
@@ -10622,7 +10622,11 @@ var AddSelect = function AddSelect(props) {
10622
10622
  }
10623
10623
  handleLoading(isContinue, false);
10624
10624
  }).catch(function (Error) {
10625
- message.error(Error);
10625
+ if (_typeof(Error) === 'object') {
10626
+ !Error.needThrowError ? null : message.error(Error.message);
10627
+ } else {
10628
+ message.error(Error);
10629
+ }
10626
10630
  handleLoading(isContinue, false);
10627
10631
  });
10628
10632
  } else {
package/dist/index.js CHANGED
@@ -10640,7 +10640,11 @@ var AddSelect = function AddSelect(props) {
10640
10640
  }
10641
10641
  handleLoading(isContinue, false);
10642
10642
  }).catch(function (Error) {
10643
- antd.message.error(Error);
10643
+ if (_typeof(Error) === 'object') {
10644
+ !Error.needThrowError ? null : antd.message.error(Error.message);
10645
+ } else {
10646
+ antd.message.error(Error);
10647
+ }
10644
10648
  handleLoading(isContinue, false);
10645
10649
  });
10646
10650
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.2.15",
3
+ "version": "2.2.16",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -752,7 +752,11 @@ const AddSelect = (props: any) => {
752
752
  }
753
753
  handleLoading(isContinue,false)
754
754
  }).catch(Error => {
755
- message.error(Error);
755
+ if(typeof Error === 'object') {
756
+ !Error.needThrowError ? null : message.error(Error.message)
757
+ } else {
758
+ message.error(Error);
759
+ }
756
760
  handleLoading(isContinue,false)
757
761
  })
758
762
  } else {