mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
增加暂无数据的提醒
This commit is contained in:
@@ -88,6 +88,9 @@ class _TaskLogPageState extends ConsumerState<TaskLogPage> with LazyLoadState<Ta
|
||||
HttpResponse<List<TaskLogBean>> response = await Api.taskLog();
|
||||
|
||||
if (response.success) {
|
||||
if (response.bean == null || response.bean!.isEmpty) {
|
||||
"暂无数据".toast();
|
||||
}
|
||||
list.clear();
|
||||
list.addAll(response.bean ?? []);
|
||||
setState(() {});
|
||||
|
||||
Reference in New Issue
Block a user