mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-10 03:01:35 +08:00
🐛 Document dynamic loading is incomplete https://github.com/siyuan-note/siyuan/issues/8285
This commit is contained in:
parent
ec9273e7af
commit
3d3dd7218f
@ -655,8 +655,8 @@ func GetDoc(startID, endID, id string, index int, keyword string, mode int, size
|
|||||||
// 引用计数浮窗请求,需要按照反链逻辑组装 https://github.com/siyuan-note/siyuan/issues/6853
|
// 引用计数浮窗请求,需要按照反链逻辑组装 https://github.com/siyuan-note/siyuan/issues/6853
|
||||||
nodes, isBacklinkExpand = getBacklinkRenderNodes(node)
|
nodes, isBacklinkExpand = getBacklinkRenderNodes(node)
|
||||||
} else {
|
} else {
|
||||||
// 如果同时存在 startID 和 endID,则只加载 startID 和 endID 之间的块 [startID, endID]
|
// 如果同时存在 startID 和 endID,并且是动态加载的情况,则只加载 startID 和 endID 之间的块 [startID, endID]
|
||||||
if "" != startID && "" != endID {
|
if "" != startID && "" != endID && scroll {
|
||||||
nodes, eof = loadNodesByStartEnd(tree, startID, endID)
|
nodes, eof = loadNodesByStartEnd(tree, startID, endID)
|
||||||
if 1 > len(nodes) {
|
if 1 > len(nodes) {
|
||||||
// 按 mode 加载兜底
|
// 按 mode 加载兜底
|
||||||
|
Loading…
Reference in New Issue
Block a user