🎨 Improve database paging loading https://github.com/siyuan-note/siyuan/issues/12780
This commit is contained in:
parent
22e954c4e7
commit
2da376c7c9
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue