mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
This commit is contained in:
parent
fe846b4f59
commit
6ee275195e
8 changed files with 55 additions and 45 deletions
|
|
@ -136,6 +136,12 @@ const dockToJSON = (dock: Dock) => {
|
|||
return json;
|
||||
};
|
||||
|
||||
export const resetLayout = () => {
|
||||
fetchPost("/api/system/setUILayout", {layout: {}}, () => {
|
||||
window.location.reload();
|
||||
});
|
||||
};
|
||||
|
||||
export const exportLayout = (reload: boolean, cb?: () => void) => {
|
||||
const useElement = document.querySelector("#barDock use");
|
||||
if (!useElement) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue