首次进入默认板块切换

This commit is contained in:
谢宇宁
2026-09-22 16:26:06 +07:00
parent 220018715c
commit 88471f5b95
2 changed files with 49 additions and 23 deletions
+2 -5
View File
@@ -94,8 +94,8 @@ class MainPageLogic extends GetxController {
];
/// 当前底部 tab 下标:内容页(LazyIndexedStack)和底栏选中态的唯一真相源。
/// 启动固定落在短剧
final curPageIndex = DramaTipBubble.dramaTab.obs;
/// 启动固定落在主页
final curPageIndex = 0.obs;
final shortIndex = (-1).obs; // -1 = 用短剧频道的默认页(AI短剧)
final darkInitTabId = Rx<String?>(null); // 暗网默认亚模块 id
@@ -123,9 +123,6 @@ class MainPageLogic extends GetxController {
MineMsgProvider().loadData();
HomeUpdateMarkerProvider().loadData();
//启动就落在短剧:引导气泡不该再亮(这里早于 DramaTipBubble.start 的读盘)
if (curPageIndex.value == DramaTipBubble.dramaTab) DramaTipBubble.hide();
_yinseSub = eventBus.on<YinseinnerModel>(_onYinse);
_loginSub = eventBus.on<ReLoginEvent>(_onReLogin);