diff --git a/components/DataView/index.js b/components/DataView/index.js index 477baafa2087d492fb8fba367f6f696f70e46e01..75a4746f3998282ed17cfb0da4ea28b0dc34a542 100644 --- a/components/DataView/index.js +++ b/components/DataView/index.js @@ -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) {