mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-26 12:07:11 +08:00
committed by
GitHub
parent
acb3784071
commit
218e829fd4
@@ -80,9 +80,8 @@ class _HotPageState extends CommonPageState<HotPage, HotController>
|
||||
try {
|
||||
HomeController homeController =
|
||||
Get.find<HomeController>();
|
||||
int index = homeController.tabs.indexWhere(
|
||||
(item) => item['type'] == HomeTabType.rank,
|
||||
);
|
||||
int index = homeController.tabs
|
||||
.indexOf(HomeTabType.rank);
|
||||
if (index != -1) {
|
||||
homeController.tabController.animateTo(index);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user