mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-10-26 19:49:02 +08:00
feat:优化项目空间的显示数量
This commit is contained in:
@@ -48,12 +48,4 @@ func (c *HomeController) Index() {
|
||||
c.Data["TotalPages"] = int(math.Ceil(float64(totalCount) / float64(pageSize)))
|
||||
|
||||
c.Data["Lists"] = books
|
||||
|
||||
labels, totalCount, err := models.NewLabel().FindToPager(1, 10)
|
||||
|
||||
if err != nil {
|
||||
c.Data["Labels"] = make([]*models.Label, 0)
|
||||
} else {
|
||||
c.Data["Labels"] = labels
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user