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"]);
/// #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) => {