@zat-design/sisyphus-react 3.13.16-beta.2 → 3.13.16-beta.3

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.
@@ -21,6 +21,10 @@ function useEnum(codes, value, compose) {
21
21
  fieldNames = _ref3$fieldNames === void 0 ? {} : _ref3$fieldNames,
22
22
  _ref3$clear = _ref3.clear,
23
23
  clear = _ref3$clear === void 0 ? true : _ref3$clear;
24
+ // 存在子应用自管理枚举时,需要根据其指定的cacheKey进行缓存
25
+ if (cacheKey !== 'zat-design-pro-component-cacheKey') {
26
+ baseEnumStorage = null;
27
+ }
24
28
  var catchData = getEnumData(storage, cacheKey, baseEnumStorage);
25
29
  // 默认枚举缓存数据
26
30
  baseEnumStorage = catchData;
@@ -27,6 +27,10 @@ function useEnum(codes, value, compose) {
27
27
  fieldNames = _ref3$fieldNames === void 0 ? {} : _ref3$fieldNames,
28
28
  _ref3$clear = _ref3.clear,
29
29
  clear = _ref3$clear === void 0 ? true : _ref3$clear;
30
+ // 存在子应用自管理枚举时,需要根据其指定的cacheKey进行缓存
31
+ if (cacheKey !== 'zat-design-pro-component-cacheKey') {
32
+ baseEnumStorage = null;
33
+ }
30
34
  var catchData = (0, _utils.getEnumData)(storage, cacheKey, baseEnumStorage);
31
35
  // 默认枚举缓存数据
32
36
  baseEnumStorage = catchData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.13.16-beta.2",
3
+ "version": "3.13.16-beta.3",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",