♻️ Refactor av

This commit is contained in:
Daniel 2025-06-08 16:54:27 +08:00
parent 1dcc635f4d
commit 67b8566047
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 55 additions and 28 deletions

View file

@ -572,8 +572,11 @@ 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 {
switch v.LayoutType {
case av.LayoutTypeTable:
pSize = v.Table.PageSize
case av.LayoutTypeGallery:
pSize = v.Gallery.PageSize
}
view := map[string]interface{}{