Vanessa 2024-12-22 23:30:31 +08:00
parent be6f3a237d
commit 75b4b357e7
2 changed files with 4 additions and 1 deletions

View file

@ -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[]) => {

View file

@ -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
};