删除测试数据函数
This commit is contained in:
parent
7a39bc735d
commit
de8ff96ea6
@ -295,15 +295,4 @@ class DoorLockLogLogic extends BaseGetXController {
|
|||||||
_getDoorLockLogListRefreshUIEvent?.cancel();
|
_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