Browse Source

Merge pull request #242830 in DEC/fineui from master to feature/x

* commit '0e154ea56c38130836e3c806749abbb426929f4c':
  无jira任务,cache.getItem默认值返回null,不要undefined,同原来的结果
research/test
superman 1 year ago
parent
commit
712ed80eff
  1. 2
      packages/fineui/src/core/structure/cache.js

2
packages/fineui/src/core/structure/cache.js

@ -13,7 +13,7 @@ export const Cache = {
return Cache._getKeyPrefix() + (key || "");
},
getItem: function (key, opt = {}) {
const { defaultValue, typeConversion } = opt;
const { defaultValue = null, typeConversion } = opt;
const storageKey = Cache._generateKey(key);
let value = localStorage.getItem(storageKey);

Loading…
Cancel
Save