mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
增加暂无数据的提醒
This commit is contained in:
@@ -114,6 +114,9 @@ class _ScriptPageState extends ConsumerState<ScriptPage> with LazyLoadState<Scri
|
||||
HttpResponse<List<ScriptBean>> response = await Api.scripts();
|
||||
|
||||
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