diff --git a/packages/fineui/src/core/structure/cache.js b/packages/fineui/src/core/structure/cache.js index e0ebe4607..38017a01c 100644 --- a/packages/fineui/src/core/structure/cache.js +++ b/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);