Browse Source

perf: storage hooks

paobai 3 năm trước cách đây
mục cha
commit
7aa895a2b7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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));
   }
 
   // 删