mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-26 17:49:23 +08:00
Compare commits
1 Commits
v2.0.0-bet
...
9a0e8eba5e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a0e8eba5e |
@@ -32,7 +32,8 @@ export function createStorage<T extends object>(type: StorageType, storagePrefix
|
||||
storageData = JSON.parse(json);
|
||||
} catch {}
|
||||
|
||||
if (storageData) {
|
||||
// storageData may be `false` if it is boolean type
|
||||
if (storageData !== null) {
|
||||
return storageData as T[K];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user