From 6061c3548fb5c0e1bbae21c7648d4a4400e994a6 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期一, 25 十一月 2024 22:20:30 +0800 Subject: [PATCH] 优化代码 --- src/plugins/cache.js | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/plugins/cache.js b/src/plugins/cache.js index 6f71b8e..e912c9a 100644 --- a/src/plugins/cache.js +++ b/src/plugins/cache.js @@ -26,6 +26,7 @@ if (value != null) { return JSON.parse(value) } + return null }, remove (key) { sessionStorage.removeItem(key); @@ -59,6 +60,7 @@ if (value != null) { return JSON.parse(value) } + return null }, remove (key) { localStorage.removeItem(key); -- Gitblit v1.9.3