Daniel 2025-06-23 10:45:45 +08:00
parent 525339115a
commit b804cd2d61
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 7 additions and 5 deletions

View file

@ -69,10 +69,12 @@ func RenderAttributeViewGallery(attrView *av.AttributeView, view *av.View, query
// 批量加载绑定块对应的树
var ialIDs []string
for _, card := range ret.Cards {
block := card.GetBlockValue()
if nil != block && !block.IsDetached {
ialIDs = append(ialIDs, card.ID)
for cardID, keyValues := range cardsValues {
for _, kValues := range keyValues {
block := kValues.GetBlockValue()
if nil != block && !block.IsDetached {
ialIDs = append(ialIDs, cardID)
}
}
}
boundTrees := filesys.LoadTrees(ialIDs)