diff --git a/src/pages/distributor/adddistributorinfo/adddistributorinfo.js b/src/pages/distributor/adddistributorinfo/adddistributorinfo.js index c9206a2f..d3b1cb47 100644 --- a/src/pages/distributor/adddistributorinfo/adddistributorinfo.js +++ b/src/pages/distributor/adddistributorinfo/adddistributorinfo.js @@ -281,18 +281,23 @@ export default class adduserinfo extends React.Component { console.log("e onDirectChange", e); let model2 = this.state.model; model2.direct_reseller_id = e; + this.setState({ + page: 1, + }); this.setState({ model: model2, }); } onChangePageSelect(closeLoading) { let that = this; + let pages = that.state.page; + console.log("pages ==>", pages); this.setState({ - page: that.state.page + 1, + page: pages + 1, }); let params = { limit: this.state.limit, - page: that.state.page + 1, + page: pages + 1, }; this.directList(params); closeLoading && closeLoading();