yangyin
2024-11-20 c007150566688c9cda80c7aecd784c9300dfab36
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;