This commit is contained in:
2026-02-11 19:31:12 +08:00
parent ae4070ae88
commit 0144f9cc6d
2 changed files with 6 additions and 4 deletions

View File

@@ -154,12 +154,15 @@
- (void)customTabBar:(KBCustomTabBar *)tabBar
didSelectItemAtIndex:(NSInteger)index {
//
// Tab
if ((index == 1 || index == 2 || index == 3) && ![KBUserSessionManager shared].isLoggedIn) {
[[KBUserSessionManager shared] goLoginVC];
return;
}
// TabBar
[self.customTabBar setSelectedIndex:index];
// VC
self.selectedIndex = index;