fix
This commit is contained in:
@@ -143,6 +143,7 @@ export class NavigationManager {
|
||||
logger.log(
|
||||
`[NavigationManager] Already on ${panelType}, skipping switch`
|
||||
);
|
||||
callback && callback(this.getCurrentActivePanelNode());
|
||||
return this.currentActivePanel;
|
||||
}
|
||||
|
||||
@@ -373,7 +374,9 @@ export class NavigationManager {
|
||||
// 如果配置了隐藏basePanel,记录映射关系
|
||||
if (config.hideBasePanel) {
|
||||
this.hiddenBasePanels.set(n, basePanel);
|
||||
logger.log(`[NavigationManager] 记录隐藏映射: ${n.name} -> ${basePanel.name}`);
|
||||
logger.log(
|
||||
`[NavigationManager] 记录隐藏映射: ${n.name} -> ${basePanel.name}`
|
||||
);
|
||||
}
|
||||
|
||||
// 执行打开动画
|
||||
@@ -619,7 +622,9 @@ export class NavigationManager {
|
||||
if (this.hiddenBasePanels.has(panelNode)) {
|
||||
const basePanel = this.hiddenBasePanels.get(panelNode);
|
||||
if (basePanel && basePanel.isValid) {
|
||||
logger.log(`[NavigationManager] 恢复显示basePanel: ${basePanel.name}`);
|
||||
logger.log(
|
||||
`[NavigationManager] 恢复显示basePanel: ${basePanel.name}`
|
||||
);
|
||||
basePanel.active = true;
|
||||
}
|
||||
this.hiddenBasePanels.delete(panelNode);
|
||||
|
||||
Reference in New Issue
Block a user