修复A面首页底部tab栏切换时因未出初始化firebase导致中断无法切换的问题

This commit is contained in:
fengshengxiong 2024-08-02 11:27:42 +08:00
parent 21030681a2
commit a1020160e1

View File

@ -53,12 +53,12 @@ class InitialController extends GetxController {
await PlayerController.to.stopPlay(); await PlayerController.to.stopPlay();
Get.toNamed(AppRoutes.uploadMethod); Get.toNamed(AppRoutes.uploadMethod);
} else { } else {
currentIndex.value = index;
pageController.jumpToPage(index);
if (index == 0) { if (index == 0) {
_addEventLog(); _addEventLog();
} }
if (index == 2) _refreshMe(); if (index == 2) _refreshMe();
currentIndex.value = index;
pageController.jumpToPage(index);
} }
} }