Browse Source

修复变更令分页bug

laiguoran 5 năm trước cách đây
mục cha
commit
9060f224d4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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),
             };