Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: fix https://github.com/siyuan-note/siyuan/issues/12605

Vanessaa9cf3c5f5b32
diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts
index 952153062a..e4deb40f7f 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) => {