修复Native平台上本地存储布尔类型数据失败问题

This commit is contained in:
dgflash
2024-11-30 11:06:56 +08:00
parent 0dc016f690
commit 0a3d8b7f5c

View File

@@ -70,6 +70,9 @@ export class StorageManager {
else if (typeof value === 'number') {
value = value + "";
}
else if (typeof value === 'boolean') {
value = String(value);
}
if (this.encrypted) {
value = this.iss.encrypt(value);