修复StorageManager.getBoolean方法返回值错误问题

This commit is contained in:
donggang
2024-05-15 11:34:46 +08:00
parent 9e34e4d9ad
commit c41943c04f

View File

@@ -113,7 +113,7 @@ export class StorageManager {
/** 获取指定关键字的布尔值 */
getBoolean(key: string): boolean {
var r = this.get(key);
return Boolean(r) || false;
return r.toLowerCase() === 'true';
}
/** 获取指定关键字的JSON对象 */