diff --git a/src/components/users/list.js b/src/components/users/list.js index 6e0e320..2d2fb32 100644 --- a/src/components/users/list.js +++ b/src/components/users/list.js @@ -40,15 +40,13 @@ class list extends React.Component { ease: 'easeOutQuad' } ] - const {current} = this.props.pagination - this.currentPage = current - this.newPage = current } getBodyWrapper = (body) => { // 切换分页去除动画; - if (this.currentPage !== this.newPage) { - this.currentPage = this.newPage + const { page = 1 } = this.props.location.query + const { current } = this.props.pagination + if(current != +page) { return body } return ( @@ -76,11 +74,6 @@ class list extends React.Component { e.target.style.height = 'auto' } - async pageChange(pagination) { - await this.props.onPageChange(pagination) - this.newPage = pagination.current - } - render () { const {loading, dataSource, pagination, onPageChange} = this.props const columns = [ @@ -148,7 +141,7 @@ class list extends React.Component { return