@zat-design/sisyphus-react 3.9.2-beta.4 → 3.9.2-beta.5

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.
@@ -22,6 +22,8 @@ function useEnum(codes, value, compose) {
22
22
  _ref3$clear = _ref3.clear,
23
23
  clear = _ref3$clear === void 0 ? true : _ref3$clear;
24
24
  var catchData = getEnumData(storage, cacheKey, baseEnumStorage);
25
+ // 默认枚举缓存数据
26
+ baseEnumStorage = catchData;
25
27
  if (!codes) {
26
28
  return catchData;
27
29
  }
@@ -28,6 +28,8 @@ function useEnum(codes, value, compose) {
28
28
  _ref3$clear = _ref3.clear,
29
29
  clear = _ref3$clear === void 0 ? true : _ref3$clear;
30
30
  var catchData = (0, _utils.getEnumData)(storage, cacheKey, baseEnumStorage);
31
+ // 默认枚举缓存数据
32
+ baseEnumStorage = catchData;
31
33
  if (!codes) {
32
34
  return catchData;
33
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.9.2-beta.4",
3
+ "version": "3.9.2-beta.5",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",