From d9ecdc9a53610c48dff8176d32d9fd881cc16a22 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期二, 04 三月 2025 20:31: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