Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/13164

Vanessa3f43f81bb533
diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts
index 8915953488..753d737492 100644
--- a/app/src/layout/util.ts
+++ b/app/src/layout/util.ts
@@ -370,7 +370,6 @@ export const JSONToCenter = (
child.headElement.setAttribute("data-init-active", "true");
}
(layout as Wnd).addTab(child, false, false, json.activeTime);
- (layout as Wnd).showHeading();
} else if (json.instance === "Editor" && json.blockId) {
if (window.siyuan.config.fileTree.openFilesUseCurrentTab) {
(layout as Tab).headElement.classList.add("item--unupdate");
@@ -506,6 +505,7 @@ export const JSONToLayout = (app: App, isStart: boolean) => {
}
const tab = getInstanceById(item.getAttribute("data-id")) as Tab;
tab.parent.switchTab(item, false, false, true, false);
+ tab.parent.showHeading();
});
if (latestTabHeaderElement) {
setPanelFocus(latestTabHeaderElement.parentElement.parentElement.parentElement, false);