update
This commit is contained in:
@@ -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按钮状态
|
||||
|
||||
Reference in New Issue
Block a user