Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2024-10-21 23:33:07 +08:00
commit c9f5a2de3d

View file

@ -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)