From 75b4b357e78628c6c2b1e3cd3eded81df4a4ce20 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 22 Dec 2024 23:30:31 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13579 --- app/src/layout/getAll.ts | 2 ++ app/src/plugin/API.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/layout/getAll.ts b/app/src/layout/getAll.ts index 3851a0799..04dcdcf6c 100644 --- a/app/src/layout/getAll.ts +++ b/app/src/layout/getAll.ts @@ -60,6 +60,7 @@ export const getAllEditor = () => { }; export const getAllModels = () => { + /// #if !MOBILE const models: IModels = { editor: [], graph: [], @@ -109,6 +110,7 @@ export const getAllModels = () => { getTabs(window.siyuan.layout.layout); } return models; + /// #endif }; export const getAllWnds = (layout: Layout, wnds: Wnd[]) => { diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.ts index ea73d5718..bf5eb9730 100644 --- a/app/src/plugin/API.ts +++ b/app/src/plugin/API.ts @@ -20,7 +20,7 @@ import {openMobileFileById} from "../mobile/editor"; import {lockScreen, exitSiYuan} from "../dialog/processSystem"; import {Model} from "../layout/Model"; import {getDockByType} from "../layout/tabUtil"; -import {getAllEditor} from "../layout/getAll"; +import {getAllEditor, getAllModels} from "../layout/getAll"; let openTab; let openWindow; @@ -198,5 +198,6 @@ export const API = { Menu, Setting, getAllEditor, + getAllModels, platformUtils };