Explorar o código

perf: storage hooks

paobai %!s(int64=3) %!d(string=hai) anos
pai
achega
7aa895a2b7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/utils/storage/index.ts

+ 1 - 1
src/utils/storage/index.ts

@@ -20,7 +20,7 @@ class sessionStorageProxy implements ProxyStorage {
 
   // 取
   public getItem(key: string): any {
-    return JSON.parse(this.storage.getItem(key)) || null;
+    return JSON.parse(this.storage.getItem(key));
   }
 
   // 删