An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: 当前 tab 永远为最后一个
Vanessa9197f69be08b
diff --git a/app/src/layout/util.ts b/app/src/layout/util.tsindex 25fb153f16..a3f1c30b00 100644--- a/app/src/layout/util.ts+++ b/app/src/layout/util.ts@@ -443,9 +443,6 @@ export const JSONToLayout = (app: App, isStart: boolean) => {}/// #endif}- app.plugins.forEach(item => {- afterLoadPlugin(item);- });// 移除没有插件的 tabdocument.querySelectorAll('li[data-type="tab-header"]').forEach((item: HTMLElement) => {const initData = item.getAttribute("data-initdata");@@ -484,6 +481,10 @@ export const JSONToLayout = (app: App, isStart: boolean) => {tab.parent.switchTab(item, false, false, true, false);});}+ // 需放在 tab.parent.switchTab 后,否则当前 tab 永远为最后一个+ app.plugins.forEach(item => {+ afterLoadPlugin(item);+ });resizeTopBar();};