mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-18 14:35:27 +01:00
🚨
This commit is contained in:
parent
e6a8abf004
commit
6f0c68f506
11 changed files with 29 additions and 31 deletions
|
|
@ -6,7 +6,6 @@ import {pdfResize} from "../asset/renderAssets";
|
|||
import {App} from "../index";
|
||||
import {Model} from "./Model";
|
||||
import {Editor} from "../editor";
|
||||
import {saveScroll} from "../protyle/scroll/saveScroll";
|
||||
import {Asset} from "../asset";
|
||||
import {Graph} from "./dock/Graph";
|
||||
import {Files} from "./dock/Files";
|
||||
|
|
|
|||
|
|
@ -229,8 +229,8 @@ export const exportLayout = (options: {
|
|||
};
|
||||
layoutToJSON(window.siyuan.layout.layout, layoutJSON.layout);
|
||||
getAllModels().editor.forEach(item => {
|
||||
saveScroll(item.editor.protyle)
|
||||
})
|
||||
saveScroll(item.editor.protyle);
|
||||
});
|
||||
sessionStorage.setItem("layout", JSON.stringify(layoutJSON));
|
||||
options.cb();
|
||||
return;
|
||||
|
|
@ -248,8 +248,8 @@ export const exportLayout = (options: {
|
|||
};
|
||||
layoutToJSON(window.siyuan.layout.layout, layoutJSON.layout);
|
||||
getAllModels().editor.forEach(item => {
|
||||
saveScroll(item.editor.protyle)
|
||||
})
|
||||
saveScroll(item.editor.protyle);
|
||||
});
|
||||
fetchPost("/api/system/setUILayout", {
|
||||
layout: layoutJSON,
|
||||
errorExit: options.errorExit // 后台不接受该参数,用于请求发生错误时退出程序
|
||||
|
|
@ -268,7 +268,7 @@ export const getAllLayout = () => {
|
|||
};
|
||||
layoutToJSON(window.siyuan.layout.layout, layoutJSON.layout);
|
||||
return layoutJSON;
|
||||
}
|
||||
};
|
||||
|
||||
const initInternalDock = (dockItem: IDockTab[]) => {
|
||||
dockItem.forEach((existSubItem) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue