diff --git a/lib/order/invoices_manage/invoices_history.dart b/lib/order/invoices_manage/invoices_history.dart index e4a16cff..5e89da3e 100644 --- a/lib/order/invoices_manage/invoices_history.dart +++ b/lib/order/invoices_manage/invoices_history.dart @@ -80,6 +80,7 @@ class _InvoicesHistory extends State { _map[(element.reviewerTime ?? element.createTime).toString().substring(0,7)] = [element]; } }); + if(_map.isNotEmpty) _timeList = _map.keys.toList().first; if ((baseData?.data?.records ?? []).isEmpty || records.length.toString() == baseData.data.total)