mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
739e0754ba
commit
2a20c75e3c
2 changed files with 3 additions and 2 deletions
|
|
@ -198,9 +198,9 @@ export const saveLayout = () => {
|
|||
right: dockToJSON(window.siyuan.layout.rightDock),
|
||||
};
|
||||
layoutToJSON(window.siyuan.layout.layout, layoutJSON.layout, breakObj);
|
||||
window.siyuan.config.uiLayout = layoutJSON;
|
||||
}
|
||||
}
|
||||
|
||||
if (Object.keys(breakObj).length > 0 && saveCount < 10) {
|
||||
saveCount++;
|
||||
setTimeout(() => {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import {fetchSyncPost} from "../util/fetch";
|
|||
import {App} from "../index";
|
||||
import {Plugin} from "./index";
|
||||
/// #if !MOBILE
|
||||
import {resizeTopBar} from "../layout/util";
|
||||
import {resizeTopBar, saveLayout} from "../layout/util";
|
||||
/// #endif
|
||||
import {API} from "./API";
|
||||
import {getFrontend, isMobile, isWindow} from "../util/functions";
|
||||
|
|
@ -228,5 +228,6 @@ export const afterLoadPlugin = (plugin: Plugin) => {
|
|||
}], dock.config.position === "RightBottom" ? 1 : 0, dock.config.index);
|
||||
}
|
||||
});
|
||||
saveLayout();
|
||||
/// #endif
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue