@fonixtree/magic-design 0.1.91 → 0.1.92

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.
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _antd = require("antd");
13
13
 
14
+ var _commonUtil = require("../../../utils/commonUtil");
15
+
14
16
  var _locale = require("../../../locale");
15
17
 
16
18
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -184,8 +186,7 @@ var paginationParams = {
184
186
  function AffiliatePlatform(props) {
185
187
  var _this = this;
186
188
 
187
- var _onChange = props.onChange,
188
- _fetch = props._fetch;
189
+ var _onChange = props.onChange;
189
190
 
190
191
  var _a = (0, _react.useState)([]),
191
192
  platformList = _a[0],
@@ -208,7 +209,7 @@ function AffiliatePlatform(props) {
208
209
  setLoading(true);
209
210
  return [4
210
211
  /*yield*/
211
- , _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/distribution/platform/page", params, 'GET')];
212
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/distribution/platform/page", params, 'GET')];
212
213
 
213
214
  case 1:
214
215
  res = _a.sent();
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _antd = require("antd");
13
13
 
14
+ var _commonUtil = require("../../../utils/commonUtil");
15
+
14
16
  var _locale = require("../../../locale");
15
17
 
16
18
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -184,8 +186,7 @@ var paginationParams = {
184
186
  function AffiliatePlatform(props) {
185
187
  var _this = this;
186
188
 
187
- var _onChange = props.onChange,
188
- _fetch = props._fetch;
189
+ var _onChange = props.onChange;
189
190
 
190
191
  var _a = (0, _react.useState)([]),
191
192
  platformList = _a[0],
@@ -208,7 +209,7 @@ function AffiliatePlatform(props) {
208
209
  setLoading(true);
209
210
  return [4
210
211
  /*yield*/
211
- , _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/distribution/platform/page", params, 'GET')];
212
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/distribution/platform/page", params, 'GET')];
212
213
 
213
214
  case 1:
214
215
  res = _a.sent();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.1.91",
4
+ "version": "0.1.92",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",