React开发(188):参数作为形参传入
作者:互联网
handleGetpageWalletAccount = async (params) => {
const { pageIndex, pageSize, customerType, customerName, mobile } = this.state;
try {
const res = await getpageWalletAccount({
pageIndex: this.state.pageIndex,
pageSize: this.state.pageSize,
...params,
});
console.log(res.data);
this.setState({ balanceList: res.data.records });
this.setState({ total: res.data.total });
} catch (error) {}
};
标签:pageIndex,形参,pageSize,res,React,state,188,total,data 来源: https://blog.csdn.net/weixin_43392489/article/details/120821666