Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve database paging loading https://github.com/siyuan-note/siyuan/issues/12780

Daniel2da376c7c962
diff --git a/kernel/api/av.go b/kernel/api/av.go
index 190aab1203..de1ae7f35d 100644
--- a/kernel/api/av.go
+++ b/kernel/api/av.go
@@ -560,12 +560,18 @@ func renderAttributeView(c *gin.Context) {
var views []map[string]interface{}
for _, v := range attrView.Views {
+ pSize := 10
+ if nil != v.Table && av.LayoutTypeTable == v.LayoutType {
+ pSize = v.Table.PageSize
+ }
+
view := map[string]interface{}{
"id": v.ID,
"icon": v.Icon,
"name": v.Name,
"hideAttrViewName": v.HideAttrViewName,
"type": v.LayoutType,
+ "pageSize": pSize,
}
views = append(views, view)