Commit c6181957 authored by zhangwenshuai's avatar zhangwenshuai

修改replacePageNum回调

parent cd9ab746
......@@ -300,7 +300,7 @@ export default class DataView extends React.Component {
async componentDidMount() {
await this.getSiftData();
await this.initView();
replacePageNum('pageNum', this.state.current, this.fetchPage); // 当url里面有pageNum参数时,获取url里面的参数进行请求
replacePageNum('pageNum', this.state.current, this.state.pagination.onChange); // 当url里面有pageNum参数时,获取url里面的参数进行请求
}
componentWillReceiveProps(nextProps) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment