fix: initialize controller before super (#1827)

This commit is contained in:
систем
2026-02-07 11:32:02 +08:00
committed by GitHub
parent 0c175abc0b
commit e8145ef65a
2 changed files with 2 additions and 2 deletions

View File

@@ -44,11 +44,11 @@ class _PgcPageState extends CommonPageState<PgcPage, PgcController>
@override @override
void initState() { void initState() {
super.initState();
controller = Get.put( controller = Get.put(
PgcController(tabType: widget.tabType), PgcController(tabType: widget.tabType),
tag: widget.tabType.name, tag: widget.tabType.name,
); );
super.initState();
} }
@override @override

View File

@@ -27,11 +27,11 @@ class _ZonePageState extends CommonPageState<ZonePage, ZoneController>
@override @override
void initState() { void initState() {
super.initState();
controller = Get.put( controller = Get.put(
ZoneController(rid: widget.rid, seasonType: widget.seasonType), ZoneController(rid: widget.rid, seasonType: widget.seasonType),
tag: '${widget.rid}${widget.seasonType}', tag: '${widget.rid}${widget.seasonType}',
); );
super.initState();
} }
@override @override