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

Vanessaa1ade9981ca3
diff --git a/app/src/layout/getAll.ts b/app/src/layout/getAll.ts
index 97a6f652e6..eb181acf27 100644
--- a/app/src/layout/getAll.ts
+++ b/app/src/layout/getAll.ts
@@ -160,7 +160,7 @@ export const getAllTabs = (type?: TTab | string) => {
continue;
}
try {
- const initObj = JSON.parse(initData) as { instance?: string; customModelType?: string };
+ const initObj = JSON.parse(initData) as ILayoutJSON;
if (
(initObj.instance === "Custom" && initObj.customModelType === type) ||
initObj.instance === type