mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 11:58:49 +01:00
This commit is contained in:
parent
1a2bc5208e
commit
ccb95c7132
3 changed files with 10 additions and 6 deletions
|
|
@ -170,7 +170,9 @@ export const kernelError = () => {
|
|||
export const exitSiYuan = () => {
|
||||
hideAllElements(["util"]);
|
||||
/// #if MOBILE
|
||||
saveScroll(window.siyuan.mobile.editor.protyle);
|
||||
if (window.siyuan.mobile.editor) {
|
||||
saveScroll(window.siyuan.mobile.editor.protyle);
|
||||
}
|
||||
/// #endif
|
||||
fetchPost("/api/system/exit", {force: false}, (response) => {
|
||||
if (response.code === 1) { // 同步执行失败
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue