Explorar el Código

修复变更令分页bug

laiguoran hace 5 años
padre
commit
9060f224d4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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),
             };