fix:修复进入设置后还有loading的问题
This commit is contained in:
parent
5a12e2acb4
commit
93ce93bdd4
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user