ydb-components-material 0.1.68 → 0.1.70

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/api.js CHANGED
@@ -9,7 +9,7 @@ export var post = /*#__PURE__*/function () {
9
9
  if (noJson === void 0) {
10
10
  noJson = false;
11
11
  }
12
- console.log('window.env', window.env);
12
+ console.log('window.env', window.env, window.tokenTY);
13
13
  if (window.env === 'release' && url.indexOf('zwfwpt.sxzwfw.gov.cn') > -1) {
14
14
  url = url.replace('zwfwpt.sxzwfw.gov.cn', 'zwfwpt.sxzwfw.gov.cn:10010');
15
15
  }
@@ -353,8 +353,10 @@ var FileItem = function FileItem(_ref) {
353
353
  };
354
354
  useEffect(function () {
355
355
  if (userInfo && isShowLib && tokenTY) {
356
- console.log('userInfo', userInfo);
357
- queryFileLibs();
356
+ console.log('userInfo', tokenTY, userInfo);
357
+ setTimeout(function () {
358
+ queryFileLibs();
359
+ }, 0);
358
360
  }
359
361
  }, [userInfo, isShowLib, tokenTY]);
360
362
  useEffect(function () {
package/lib/api.js CHANGED
@@ -14,7 +14,7 @@ var post = exports.post = /*#__PURE__*/function () {
14
14
  if (noJson === void 0) {
15
15
  noJson = false;
16
16
  }
17
- console.log('window.env', window.env);
17
+ console.log('window.env', window.env, window.tokenTY);
18
18
  if (window.env === 'release' && url.indexOf('zwfwpt.sxzwfw.gov.cn') > -1) {
19
19
  url = url.replace('zwfwpt.sxzwfw.gov.cn', 'zwfwpt.sxzwfw.gov.cn:10010');
20
20
  }
@@ -359,8 +359,10 @@ var FileItem = function FileItem(_ref) {
359
359
  };
360
360
  (0, _react.useEffect)(function () {
361
361
  if (userInfo && isShowLib && tokenTY) {
362
- console.log('userInfo', userInfo);
363
- queryFileLibs();
362
+ console.log('userInfo', tokenTY, userInfo);
363
+ setTimeout(function () {
364
+ queryFileLibs();
365
+ }, 0);
364
366
  }
365
367
  }, [userInfo, isShowLib, tokenTY]);
366
368
  (0, _react.useEffect)(function () {
@@ -89,7 +89,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
89
89
  packageName = 'ydb-components-material';
90
90
  }
91
91
  if (version === void 0) {
92
- version = '0.1.68';
92
+ version = '0.1.70';
93
93
  }
94
94
  if (basicLibraryVersion === void 0) {
95
95
  basicLibraryVersion = {
@@ -94,7 +94,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
94
94
  packageName = 'ydb-components-material';
95
95
  }
96
96
  if (version === void 0) {
97
- version = '0.1.68';
97
+ version = '0.1.70';
98
98
  }
99
99
  if (basicLibraryVersion === void 0) {
100
100
  basicLibraryVersion = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-components-material",
3
- "version": "0.1.68",
3
+ "version": "0.1.70",
4
4
  "description": "ydb-components-material",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -97,10 +97,10 @@
97
97
  },
98
98
  "componentConfig": {
99
99
  "isComponentLibrary": true,
100
- "materialSchema": "https://unpkg.com/ydb-components-material@0.1.68/build/lowcode/assets-prod.json"
100
+ "materialSchema": "https://unpkg.com/ydb-components-material@0.1.70/build/lowcode/assets-prod.json"
101
101
  },
102
102
  "lcMeta": {
103
103
  "type": "component"
104
104
  },
105
- "homepage": "https://unpkg.com/ydb-components-material@0.1.68/build/index.html"
105
+ "homepage": "https://unpkg.com/ydb-components-material@0.1.70/build/index.html"
106
106
  }