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

This commit is contained in:
liyi 2025-08-04 15:25:20 +08:00
parent 295ce15fc4
commit 862b87d5d1
2 changed files with 19 additions and 12 deletions

View File

@ -428,11 +428,17 @@ class ApiProvider extends BaseProvider {
isUnShowLoading: isUnShowLoading); isUnShowLoading: isUnShowLoading);
// //
Future<Response> getLockSettingInfoData(String lockId) => post( Future<Response> getLockSettingInfoData(
String lockId, {
bool isUnShowLoading = true,
}) =>
post(
getLockSettingURL.toUrl, getLockSettingURL.toUrl,
jsonEncode({ jsonEncode({
'lockId': lockId, 'lockId': lockId,
})); }),
isUnShowLoading: isUnShowLoading,
);
// //
Future<Response> getLockSettingInfoDataIsNotLoadingIcon(String lockId) => Future<Response> getLockSettingInfoDataIsNotLoadingIcon(String lockId) =>
@ -2836,8 +2842,6 @@ class ApiProvider extends BaseProvider {
isShowNetworkErrorMsg: false, isShowNetworkErrorMsg: false,
isShowErrMsg: false, isShowErrMsg: false,
isUnShowLoading: true); isUnShowLoading: true);
} }
extension ExtensionString on String { extension ExtensionString on String {

View File

@ -493,8 +493,11 @@ class ApiRepository {
// //
Future<LockSetInfoEntity> getLockSettingInfoData( Future<LockSetInfoEntity> getLockSettingInfoData(
{required String lockId}) async { {required String lockId, bool isUnShowLoading = false}) async {
final res = await apiProvider.getLockSettingInfoData(lockId); final res = await apiProvider.getLockSettingInfoData(
lockId,
isUnShowLoading: isUnShowLoading,
);
return LockSetInfoEntity.fromJson(res.body); return LockSetInfoEntity.fromJson(res.body);
} }