Browse Source

perf: storage hooks

paobai 3 years ago
parent
commit
7aa895a2b7
1 changed files with 1 additions and 1 deletions
  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));
   }
 
   // 删