Vanessa 2024-09-27 00:22:20 +08:00
parent e675379c08
commit a9cf3c5f5b

View file

@ -280,11 +280,11 @@ export const kernelError = () => {
} }
}; };
export const exitSiYuan = () => { export const exitSiYuan = async () => {
hideAllElements(["util"]); hideAllElements(["util"]);
/// #if MOBILE /// #if MOBILE
if (window.siyuan.mobile.editor) { if (window.siyuan.mobile.editor) {
saveScroll(window.siyuan.mobile.editor.protyle); await saveScroll(window.siyuan.mobile.editor.protyle);
} }
/// #endif /// #endif
fetchPost("/api/system/exit", {force: false}, (response) => { fetchPost("/api/system/exit", {force: false}, (response) => {