ls-pro-common 1.0.11 → 1.0.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.
package/es/http/index.js CHANGED
@@ -2,7 +2,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
2
2
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
3
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
4
  import { extend } from 'umi-request';
5
- import { getCache, getUrlQuery, showError } from '../utils'; //默认超时时间为1分钟
5
+ import { getCache, getUrlQuery, showError, toGatewayUrl } from '../utils'; //默认超时时间为1分钟
6
6
 
7
7
  var request = extend({
8
8
  timeout: 60000
@@ -23,7 +23,7 @@ request.interceptors.request.use(function (url, options) {
23
23
  }
24
24
 
25
25
  return {
26
- url: url,
26
+ url: toGatewayUrl(url),
27
27
  options: opts
28
28
  };
29
29
  });
@@ -1,4 +1,4 @@
1
- export { getUrlQuery, setUrlQuery, dateFormat, toGatewayUrl } from 'ls-pro-table/lib/utils';
1
+ export { getUrlQuery, setUrlQuery, dateFormat, toGatewayUrl, getResourceProps } from 'ls-pro-table/lib/utils';
2
2
  /**
3
3
  * 设置文档title
4
4
  * @param {*} title
package/es/utils/index.js CHANGED
@@ -6,7 +6,7 @@ import _message from "antd/es/message";
6
6
  import _typeof from "@babel/runtime/helpers/esm/typeof";
7
7
  import React from "react";
8
8
  import { QuestionCircleOutlined } from '@ant-design/icons';
9
- export { getUrlQuery, setUrlQuery, dateFormat, toGatewayUrl } from "ls-pro-table/es/utils";
9
+ export { getUrlQuery, setUrlQuery, dateFormat, toGatewayUrl, getResourceProps } from "ls-pro-table/es/utils";
10
10
  /**
11
11
  * 设置文档title
12
12
  * @param {*} title
package/lib/http/index.js CHANGED
@@ -42,7 +42,7 @@ request.interceptors.request.use(function (url, options) {
42
42
  }
43
43
 
44
44
  return {
45
- url: url,
45
+ url: (0, _utils.toGatewayUrl)(url),
46
46
  options: opts
47
47
  };
48
48
  });
@@ -1,4 +1,4 @@
1
- export { getUrlQuery, setUrlQuery, dateFormat, toGatewayUrl } from 'ls-pro-table/lib/utils';
1
+ export { getUrlQuery, setUrlQuery, dateFormat, toGatewayUrl, getResourceProps } from 'ls-pro-table/lib/utils';
2
2
  /**
3
3
  * 设置文档title
4
4
  * @param {*} title
@@ -12,6 +12,12 @@ Object.defineProperty(exports, "dateFormat", {
12
12
  }
13
13
  });
14
14
  exports.getLoginName = exports.getCookie = exports.getCompanyId = exports.getCache = void 0;
15
+ Object.defineProperty(exports, "getResourceProps", {
16
+ enumerable: true,
17
+ get: function get() {
18
+ return _utils.getResourceProps;
19
+ }
20
+ });
15
21
  Object.defineProperty(exports, "getUrlQuery", {
16
22
  enumerable: true,
17
23
  get: function get() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ls-pro-common",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "ls-pro-common",
5
5
  "keywords": [
6
6
  "antd",
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "@ant-design/icons": "^4.3.0",
31
- "ls-pro-table": "2.62.17",
31
+ "ls-pro-table": "2.62.18",
32
32
  "ls-pro-form": "1.52.20",
33
33
  "@babel/runtime": "^7.16.3",
34
34
  "classnames": "^2.2.6",