This commit is contained in:
2025-09-17 16:12:54 +08:00
parent 586ea3848d
commit be1389df98
16 changed files with 621 additions and 178 deletions
@@ -121,7 +121,7 @@ export class NavigationManager {
public switchToPanel(panelType: PanelType, force: boolean = false): void {
if (this.currentActivePanelType === panelType && !force) {
if (panelType === PanelType.THEME) {
this.girlListPanel.hide();
this.girlListPanel?.hide();
}
return;
@@ -157,9 +157,12 @@ export class NavigationManager {
if (this.subPanelDic.has(this.currentActivePanel)) {
//如果有子页面,关闭掉
let subs = this.subPanelDic.get(this.currentActivePanel);
subs.forEach((n) => {
n.getComponent(li_BaseView).close();
});
if (subs) {
subs.forEach((n) => {
n.getComponent(li_BaseView)?.close();
});
}
this.subPanelDic.delete(this.currentActivePanel);
}
// 更新NavigationPanel按钮状态