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/14570

Vanessadc448a9b457f
diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts
index 145524e4a6..da13076d6e 100644
--- a/app/src/layout/util.ts
+++ b/app/src/layout/util.ts
@@ -516,7 +516,7 @@ export const JSONToLayout = (app: App, isStart: boolean) => {
}
// 移除没有数据的页签 https://github.com/siyuan-note/siyuan/issues/13390
removedTabs.forEach(item => {
- item.parent.removeTab(item.id);
+ item.parent.removeTab(item.id, false, false, false);
});
}
// 需放在 tab.parent.switchTab 后,否则当前 tab 永远为最后一个