diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts index 952153062..e4deb40f7 100644 --- a/app/src/dialog/processSystem.ts +++ b/app/src/dialog/processSystem.ts @@ -280,11 +280,11 @@ export const kernelError = () => { } }; -export const exitSiYuan = () => { +export const exitSiYuan = async () => { hideAllElements(["util"]); /// #if MOBILE if (window.siyuan.mobile.editor) { - saveScroll(window.siyuan.mobile.editor.protyle); + await saveScroll(window.siyuan.mobile.editor.protyle); } /// #endif fetchPost("/api/system/exit", {force: false}, (response) => {