Commit c6181957 authored by zhangwenshuai's avatar zhangwenshuai

修改replacePageNum回调

parent cd9ab746
......@@ -25,7 +25,7 @@ import { SIFT_TYPE } from '@/utils/enum';
import storage from '@/utils/storage'; /* eslint-disable react/sort-comp */ // 关闭下划线变量检测 // 关闭方法排序检测 // 多维数组降维成一维数组
/**
*
*
* @param {initView} fun 用于数据初始化之后的数据处理,每个自控可单独处理回调
*/
/* eslint-disable no-underscore-dangle */
......@@ -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