diff --git a/lib/module/others/login_log/login_log_page.dart b/lib/module/others/login_log/login_log_page.dart index 8c985a7..70191f9 100644 --- a/lib/module/others/login_log/login_log_page.dart +++ b/lib/module/others/login_log/login_log_page.dart @@ -21,7 +21,8 @@ class LoginLogPage extends ConsumerStatefulWidget { _LoginLogPageState createState() => _LoginLogPageState(); } -class _LoginLogPageState extends ConsumerState with LazyLoadState { +class _LoginLogPageState extends ConsumerState + with LazyLoadState { List list = []; @override @@ -65,7 +66,8 @@ class _LoginLogPageState extends ConsumerState with LazyLoadState< selectionWidthStyle: BoxWidthStyle.max, selectionHeightStyle: BoxHeightStyle.max, style: TextStyle( - color: ref.watch(themeProvider).themeColor.descColor(), + color: + ref.watch(themeProvider).themeColor.descColor(), fontSize: 14, ), ), @@ -77,7 +79,8 @@ class _LoginLogPageState extends ConsumerState with LazyLoadState< selectionWidthStyle: BoxWidthStyle.max, selectionHeightStyle: BoxHeightStyle.max, style: TextStyle( - color: ref.watch(themeProvider).themeColor.descColor(), + color: + ref.watch(themeProvider).themeColor.descColor(), fontSize: 14, ), ), @@ -106,6 +109,9 @@ class _LoginLogPageState extends ConsumerState with LazyLoadState< HttpResponse> response = await Api.loginLog(); if (response.success) { + if (response.bean == null || response.bean!.isEmpty) { + "暂无数据".toast(); + } list.clear(); list.addAll(response.bean ?? []); setState(() {}); diff --git a/lib/module/others/scripts/script_page.dart b/lib/module/others/scripts/script_page.dart index 4d36b28..d56918a 100644 --- a/lib/module/others/scripts/script_page.dart +++ b/lib/module/others/scripts/script_page.dart @@ -114,6 +114,9 @@ class _ScriptPageState extends ConsumerState with LazyLoadState> response = await Api.scripts(); if (response.success) { + if (response.bean == null || response.bean!.isEmpty) { + "暂无数据".toast(); + } list.clear(); list.addAll(response.bean ?? []); setState(() {}); diff --git a/lib/module/others/task_log/task_log_page.dart b/lib/module/others/task_log/task_log_page.dart index 69e2273..fe64844 100644 --- a/lib/module/others/task_log/task_log_page.dart +++ b/lib/module/others/task_log/task_log_page.dart @@ -88,6 +88,9 @@ class _TaskLogPageState extends ConsumerState with LazyLoadState> response = await Api.taskLog(); if (response.success) { + if (response.bean == null || response.bean!.isEmpty) { + "暂无数据".toast(); + } list.clear(); list.addAll(response.bean ?? []); setState(() {});