add mounted

newHost
张萌 2 years ago
parent f800ebb1f3
commit f3d68bed52

@ -124,8 +124,10 @@ class _OldAgeSupportListPageState extends State<OldAgeSupportListPage> {
_bracelets = (base.data as List)
.map((e) => BraceletListModel.fromJson(e))
.toList();
if (mounted) {
setState(() {});
}
}
},
child: _bracelets.isEmpty
? _emptyWidget()

Loading…
Cancel
Save