Merge branch 'master' of https://gitee.com/starlock-cn/app-starlock
This commit is contained in:
commit
c2a3879eee
@ -295,15 +295,4 @@ class DoorLockLogLogic extends BaseGetXController {
|
||||
_getDoorLockLogListRefreshUIEvent?.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
//测试方法,得到真实数据后删除
|
||||
testReadJsonData() async {
|
||||
// 读取JSON文件
|
||||
String jsonString =
|
||||
await rootBundle.loadString('assets/DoorLockLogEntity.json');
|
||||
|
||||
// 解析JSON数据并转换为实体对象
|
||||
Map<String, dynamic> jsonData = json.decode(jsonString);
|
||||
state.lockLogEntity.value = DoorLockLogEntity.fromJson(jsonData);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user