mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-10-26 11:29:02 +08:00
优化代码
This commit is contained in:
@@ -79,7 +79,7 @@ func (c *BlogController) List() {
|
||||
blogList,totalCount,err = models.NewBlog().FindToPager(pageIndex,conf.PageSize,0,"")
|
||||
|
||||
|
||||
if err != nil {
|
||||
if err != nil && err != orm.ErrNoRows {
|
||||
c.ShowErrorPage(500,err.Error())
|
||||
}
|
||||
if totalCount > 0 {
|
||||
|
||||
Reference in New Issue
Block a user