From c61819574870de279668789a4d8837ee6bf3f616 Mon Sep 17 00:00:00 2001 From: zhangwenshuai Date: Mon, 13 Apr 2020 07:20:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9replacePageNum=E5=9B=9E?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/DataView/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/DataView/index.js b/components/DataView/index.js index 477baaf..75a4746 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) { -- 2.21.0