From 9d9cb926d2fdd4ba6db1daffdbc6c877a626d813 Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期三, 12 三月 2025 09:13:07 +0800 Subject: [PATCH] dev-init --- src/plugins/cache.ts | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/plugins/cache.ts b/src/plugins/cache.ts index cf43680..e5ceead 100644 --- a/src/plugins/cache.ts +++ b/src/plugins/cache.ts @@ -26,6 +26,7 @@ if (value != null) { return JSON.parse(value); } + return null; }, remove(key: string) { sessionStorage.removeItem(key); @@ -59,6 +60,7 @@ if (value != null) { return JSON.parse(value); } + return null; }, remove(key: string) { localStorage.removeItem(key); -- Gitblit v1.9.3