add mounted

newHost
张萌 2 years ago
parent f800ebb1f3
commit f3d68bed52

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

Loading…
Cancel
Save