diff --git a/dev_log/2.1.360/daoqgong_202112161526 copy.yaml b/dev_log/2.1.360/daoqgong_202112161526 copy.yaml new file mode 100644 index 000000000..69f1449ee --- /dev/null +++ b/dev_log/2.1.360/daoqgong_202112161526 copy.yaml @@ -0,0 +1,3 @@ +--- +bugfix: + - "任务历史详情左侧IP列表分页异常 (fixed #349)" diff --git a/frontend/src/views/task/task-log.vue b/frontend/src/views/task/task-log.vue index b556fde14..830665616 100644 --- a/frontend/src/views/task/task-log.vue +++ b/frontend/src/views/task/task-log.vue @@ -38,6 +38,7 @@ :current.sync="pagination.current" :show-limit="false" :limit="pagination.limit" + :limit-list="pagination.limitList" align="center" @change="handlePageChange" /> @@ -293,6 +294,7 @@ export default { current: isNaN(this.query.page) ? 1 : Number(this.query.page), count: 0, limit: isNaN(this.query.pageSize) ? 50 : Number(this.query.pageSize), + limitList: [isNaN(this.query.pageSize) ? 50 : Number(this.query.pageSize)], // 需要把自定义pagesize塞进去 }, listLoading: false, relativePosition: 0,