This commit is contained in:
parent
be6f3a237d
commit
75b4b357e7
2 changed files with 4 additions and 1 deletions
|
@ -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[]) => {
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue