From fb29e0be9f4a518980d5d2313fe3edf65282b394 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 4 Jul 2023 13:40:47 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/8670 --- app/src/dialog/processSystem.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts index 40b02e4ac..b8d1e63fa 100644 --- a/app/src/dialog/processSystem.ts +++ b/app/src/dialog/processSystem.ts @@ -21,6 +21,7 @@ import {Tab} from "../layout/Tab"; import {setEmpty} from "../mobile/util/setEmpty"; import {hideElements} from "../protyle/ui/hideElements"; import {App} from "../index"; +import {saveScroll} from "../protyle/scroll/saveScroll"; const updateTitle = (rootID: string, tab: Tab) => { fetchPost("/api/block/getDocInfo", { @@ -168,6 +169,9 @@ export const kernelError = () => { }; export const exitSiYuan = () => { + /// #if MOBILE + saveScroll(window.siyuan.mobile.editor.protyle); + /// #endif fetchPost("/api/system/exit", {force: false}, (response) => { if (response.code === 1) { // 同步执行失败 const msgId = showMessage(response.msg, response.data.closeTimeout, "error");