Vanessa 2022-10-30 09:37:46 +08:00
parent fe846b4f59
commit 6ee275195e
8 changed files with 55 additions and 45 deletions

View file

@ -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) {