Browse Source

修复变更令分页bug

laiguoran 5 years ago
parent
commit
9060f224d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/controller/change_controller.js

+ 1 - 1
app/controller/change_controller.js

@@ -83,7 +83,7 @@ module.exports = app => {
             // 分页相关
             const pageInfo = {
                 page,
-                total: parseInt(total / app.config.pageSize),
+                total: Math.ceil(total / app.config.pageSize),
                 queryData: JSON.stringify(ctx.urlInfo.query),
             };