feat:优化项目空间的显示数量

This commit is contained in:
lifei6671
2018-11-27 11:47:19 +08:00
parent 2460a32ac5
commit b240b85011
4 changed files with 10 additions and 28 deletions

View File

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