From fbe9f38eaa11c58667d6c91f0b90359cdbcdb8a4 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期二, 05 十一月 2024 17:56:38 +0800
Subject: [PATCH] bug

---
 src/utils/storage.ts |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/utils/storage.ts b/src/utils/storage.ts
index b64119f..bf6222e 100644
--- a/src/utils/storage.ts
+++ b/src/utils/storage.ts
@@ -51,6 +51,7 @@
 	// 鑾峰彇锛岃繃鏈熷垯娓呴櫎
 	get(key: string) {
 		const cacheValue: CacheValue<any> = Local.get(key);
+		if(!cacheValue?.expiredTime) return null;
 		if (new Date().getTime() > cacheValue.expiredTime) {
 			Local.remove(key);
 			return null;

--
Gitblit v1.9.3