mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-02 19:00:15 +01:00
📱 repeat bind event
This commit is contained in:
parent
440e005267
commit
90a4270deb
5 changed files with 12 additions and 12 deletions
|
|
@ -13,6 +13,7 @@ import {hideElements} from "../protyle/ui/hideElements";
|
|||
import {pushBack} from "./util/MobileBackFoward";
|
||||
import {setStorageVal} from "../protyle/util/compatibility";
|
||||
import {showMessage} from "../dialog/message";
|
||||
import {saveScroll} from "../protyle/scroll/saveScroll";
|
||||
|
||||
export const openMobileFileById = (id: string, action = [Constants.CB_GET_HL]) => {
|
||||
window.siyuan.storage[Constants.LOCAL_DOCINFO] = {id, action};
|
||||
|
|
@ -44,6 +45,7 @@ export const openMobileFileById = (id: string, action = [Constants.CB_GET_HL]) =
|
|||
return;
|
||||
}
|
||||
if (window.siyuan.mobile.editor) {
|
||||
saveScroll(window.siyuan.mobile.editor.protyle);
|
||||
pushBack();
|
||||
addLoading(window.siyuan.mobile.editor.protyle);
|
||||
fetchPost("/api/filetree/getDoc", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue