修复选择集群弹窗页面可能只显示前6个集群的Bug

This commit is contained in:
GoEdgeLab
2022-02-28 14:41:55 +08:00
parent b75f44947b
commit 998f1e6c50
2 changed files with 6 additions and 4 deletions

View File

@@ -35,11 +35,11 @@ func (this *SelectPopupAction) RunGet(params struct {
return
}
var count = countResp.Count
var page = this.NewPage(count)
page.Size = 6
var pageSize int64 = 6
if params.PageSize > 0 {
page.Size = params.PageSize
pageSize = params.PageSize
}
var page = this.NewPage(count, pageSize)
this.Data["page"] = page.AsHTML()
clustersResp, err := this.RPC().NodeClusterRPC().ListEnabledNodeClusters(this.AdminContext(), &pb.ListEnabledNodeClustersRequest{