add mounted

newHost
张萌 2 years ago
parent f800ebb1f3
commit f3d68bed52

@ -124,8 +124,10 @@ 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();
if (mounted) {
setState(() {}); setState(() {});
} }
}
}, },
child: _bracelets.isEmpty child: _bracelets.isEmpty
? _emptyWidget() ? _emptyWidget()

Loading…
Cancel
Save