mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
This commit is contained in:
parent
23ebc726ac
commit
fb29e0be9f
1 changed files with 4 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue