ls-pro-common 1.0.18 → 1.0.21

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/lib/http/index.js CHANGED
@@ -41,8 +41,11 @@ request.interceptors.request.use(function (url, options) {
41
41
  });
42
42
  }
43
43
 
44
+ var param = {
45
+ resCode: (0, _utils.getUrlQuery)('resourceId') || (0, _utils.getResourceProps)('resourceId')
46
+ };
44
47
  return {
45
- url: url,
48
+ url: (0, _utils.setUrlQuery)(url, param),
46
49
  options: opts
47
50
  };
48
51
  });
package/lib/typing.d.ts CHANGED
@@ -15,6 +15,8 @@ export declare type TableToolbar = {
15
15
  remove?: boolean;
16
16
  export?: boolean;
17
17
  import?: boolean;
18
+ audit?: boolean;
19
+ config?: boolean;
18
20
  print?: boolean;
19
21
  };
20
22
  /** 基础模块接口类型 */
@@ -111,7 +111,7 @@ var setCookie = function setCookie(key, value) {
111
111
  exports.setCookie = setCookie;
112
112
 
113
113
  var isLogin = function isLogin() {
114
- return !!getCookie('token');
114
+ return !!getCookie('inline');
115
115
  };
116
116
  /**
117
117
  * 设置本地缓存
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ls-pro-common",
3
- "version": "1.0.18",
3
+ "version": "1.0.21",
4
4
  "description": "ls-pro-common",
5
5
  "keywords": [
6
6
  "antd",
@@ -28,8 +28,8 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "@ant-design/icons": "^4.3.0",
31
- "ls-pro-table": "2.62.20",
32
- "ls-pro-form": "1.52.20",
31
+ "ls-pro-table": "2.62.23",
32
+ "ls-pro-form": "1.52.22",
33
33
  "@babel/runtime": "^7.16.3",
34
34
  "classnames": "^2.2.6",
35
35
  "moment": "^2.27.0",