Skip to content

Pagination组件当currentpage大于totalPages时,报错 #18

@wuyanwuyan

Description

@wuyanwuyan
<Pagination
            currentPage={(query.offset + query.limit) / query.limit}
            totalPages={Math.ceil(store.totalCount / query.limit)}
            onChange={_onPageChange}/>

currentpage大于totalPages时,(currentpage = 1 ,totalPage = 0)
2017-05-03 14 48 04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions