mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 22:44:06 +01:00
This commit is contained in:
parent
a0f5387bb4
commit
4a9f9cf63a
4 changed files with 929 additions and 101 deletions
|
|
@ -5,7 +5,7 @@ import {Constants} from "../constants";
|
|||
import {fetchPost} from "../util/fetch";
|
||||
import {onGet} from "../protyle/util/onGet";
|
||||
import {addLoading} from "../protyle/ui/initUI";
|
||||
import {scrollCenter} from "../util/highlightById";
|
||||
import {highlightById, scrollCenter} from "../util/highlightById";
|
||||
import {isInEmbedBlock} from "../protyle/util/hasClosest";
|
||||
import {setEditMode} from "../protyle/util/setEditMode";
|
||||
import {hideElements} from "../protyle/ui/hideElements";
|
||||
|
|
@ -42,6 +42,9 @@ export const openMobileFileById = (app: App, id: string, action: TProtyleAction[
|
|||
if (blockElement) {
|
||||
pushBack();
|
||||
scrollCenter(window.siyuan.mobile.editor.protyle, blockElement, true);
|
||||
if (action.includes(Constants.CB_GET_HL)) {
|
||||
highlightById(window.siyuan.mobile.editor.protyle, id, true);
|
||||
}
|
||||
closePanel();
|
||||
// 更新文档浏览时间
|
||||
fetchPost("/api/storage/updateRecentDocViewTime", {rootID: window.siyuan.mobile.editor.protyle.block.rootID});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue