mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-17 12:38:07 +01:00
This commit is contained in:
parent
f34d8022b8
commit
c4aee4d601
2 changed files with 2 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ export const getDocByScroll = (options: {
|
|||
actions = [Constants.CB_GET_UNUNDO];
|
||||
}
|
||||
}
|
||||
if (options.scrollAttr?.zoomInId) {
|
||||
if (options.scrollAttr?.zoomInId && options.scrollAttr?.rootId && options.scrollAttr.zoomInId !== options.scrollAttr.rootId) {
|
||||
fetchPost("/api/filetree/getDoc", {
|
||||
id: options.scrollAttr.zoomInId,
|
||||
size: Constants.SIZE_GET_MAX,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue