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

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.
@@ -10,8 +10,13 @@ var _excluded = ["children"];
10
10
  * @returns
11
11
  */
12
12
  export function getEnumData(storage, cacheKey, baseEnumStorage) {
13
- if (baseEnumStorage && window.localStorage.getItem(cacheKey)) {
14
- return baseEnumStorage;
13
+ var _baseEnumStorage = baseEnumStorage;
14
+ // 存在子应用自管理枚举时,需要根据其指定的cacheKey进行缓存
15
+ if (cacheKey !== 'zat-design-pro-component-cacheKey') {
16
+ _baseEnumStorage = null;
17
+ }
18
+ if (_baseEnumStorage && window.localStorage.getItem(cacheKey)) {
19
+ return _baseEnumStorage;
15
20
  }
16
21
  if (storage === 'localStorage') {
17
22
  return JSON.parse(window.localStorage.getItem(cacheKey) || '{}');
@@ -23,8 +23,13 @@ var _excluded = ["children"];
23
23
  * @returns
24
24
  */
25
25
  function getEnumData(storage, cacheKey, baseEnumStorage) {
26
- if (baseEnumStorage && window.localStorage.getItem(cacheKey)) {
27
- return baseEnumStorage;
26
+ var _baseEnumStorage = baseEnumStorage;
27
+ // 存在子应用自管理枚举时,需要根据其指定的cacheKey进行缓存
28
+ if (cacheKey !== 'zat-design-pro-component-cacheKey') {
29
+ _baseEnumStorage = null;
30
+ }
31
+ if (_baseEnumStorage && window.localStorage.getItem(cacheKey)) {
32
+ return _baseEnumStorage;
28
33
  }
29
34
  if (storage === 'localStorage') {
30
35
  return JSON.parse(window.localStorage.getItem(cacheKey) || '{}');
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.4",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",