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

Vanessa8c98cc574d94
diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.ts
index e3d7b41b1d..e2361e3e85 100644
--- a/app/src/plugin/API.ts
+++ b/app/src/plugin/API.ts
@@ -21,7 +21,7 @@ import {lockScreen, exitSiYuan} from "../dialog/processSystem";
import {Model} from "../layout/Model";
import {getActiveTab, getDockByType} from "../layout/tabUtil";
/// #if !MOBILE
-import {getAllModels} from "../layout/getAll";
+import {getAllModels, getAllTabs} from "../layout/getAll";
/// #endif
import {getAllEditor} from "../layout/getAll";
import {openSetting} from "../config";
@@ -348,6 +348,7 @@ export const API = {
/// #if !MOBILE
getActiveTab,
getAllModels,
+ getAllTabs,
/// #endif
getActiveEditor,
platformUtils,