This commit is contained in:
2025-12-04 14:53:25 +08:00
parent 2665b5ad1f
commit d13bb734b1

View File

@@ -178,6 +178,13 @@
NSMutableDictionary *d0 = [m.firstObject mutableCopy];
d0[@"value"] = nickname; m[0] = d0; weakSelf.items = m;
[weakSelf.tableView reloadRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:0 inSection:0]] withRowAnimation:UITableViewRowAnimationNone];
//
[weakSelf.myVM updateUserInfo:weakSelf.userModel completion:^(BOOL success, NSError * _Nullable error) {
if (error) {
[KBHUD showError:error.localizedDescription ?: KBLocalized(@"Network error")];
}
}];
}
[weakPop dismiss];
};
@@ -232,6 +239,14 @@
NSMutableDictionary *d1 = [m[1] mutableCopy];
d1[@"value"] = name; m[1] = d1; weakSelf.items = m;
[weakSelf.tableView reloadRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:1 inSection:0]] withRowAnimation:UITableViewRowAnimationNone];
//
[weakSelf.myVM updateUserInfo:weakSelf.userModel completion:^(BOOL success, NSError * _Nullable error) {
if (error) {
[KBHUD showError:error.localizedDescription ?: KBLocalized(@"Network error")];
}
}];
[weakPop dismiss];
};