From efcd83a00f4cf53d9a3a5ee3dee10baabbc28c63 Mon Sep 17 00:00:00 2001 From: guyi Date: Fri, 28 Jul 2023 12:58:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=EF=BC=8Ccache.g?= =?UTF-8?q?etItem=E9=BB=98=E8=AE=A4=E5=80=BC=E8=BF=94=E5=9B=9Enull?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E8=A6=81undefined=EF=BC=8C=E5=90=8C=E5=8E=9F?= =?UTF-8?q?=E6=9D=A5=E7=9A=84=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/core/structure/cache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);