fix:修复进入设置后还有loading的问题

This commit is contained in:
liyi 2025-08-04 15:23:58 +08:00
parent 5a12e2acb4
commit 93ce93bdd4

View File

@ -442,10 +442,13 @@ class LockSetLogic extends BaseGetXController {
}
//
Future<LockSetInfoEntity> getLockSettingInfoData() async {
Future<LockSetInfoEntity> getLockSettingInfoData({
bool isUnShowLoading = false,
}) async {
final LockSetInfoEntity entity =
await ApiRepository.to.getLockSettingInfoData(
lockId: state.lockId.toString(),
isUnShowLoading: isUnShowLoading,
);
if (entity.errorCode!.codeIsSuccessful) {
state.lockSetInfoData.value = entity.data!;
@ -718,7 +721,7 @@ class LockSetLogic extends BaseGetXController {
records: records,
isUnShowLoading: true);
if (entity.errorCode!.codeIsSuccessful) {
await getLockSettingInfoData();
await getLockSettingInfoData(isUnShowLoading: true);
update();
}
}