更新验证码选择区号
This commit is contained in:
@@ -226,6 +226,11 @@ class BodyDeviceController extends GetControllerEx<BodyDeviceModel> {
|
||||
if (res.code == HttpStatusCodes.ok) {
|
||||
// bindDeviceNum.value = res.total!;
|
||||
deviceList.value = res.data!;
|
||||
deviceList.value.sort((a, b) {
|
||||
final int at = a['create_time'] ?? 0;
|
||||
final int bt = b['create_time'] ?? 0;
|
||||
return bt.compareTo(at);
|
||||
});
|
||||
updateAll();
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user