引用->深拷贝

hmxc
张萌 4 years ago
parent cf107a46d0
commit 1362b661f6

@ -55,7 +55,7 @@ class _LifePayDetailPageState extends State<LifePayDetailPage> {
@override @override
void initState() { void initState() {
super.initState(); super.initState();
_selectModel = widget.selectModel; _selectModel = LifePayListModel.fromJson(widget.selectModel.toJson());
_model = widget.model; _model = widget.model;
} }

Loading…
Cancel
Save