React开发(187):react常规调用接口操作写法
作者:互联网
try {
const res = await customerWalletFreeze({
walletAccountCode: showBalanceMsg.walletAccountCode,
status: showBalanceMsg.status,
});
console.log(res.data);
const values = this.searchRef.handleGetFieldsValue();
console.log(values, 'values');
if (res.returnCode == 0) {
message.success('操作成功');
this.setState({
balancefrozenvisible: false,
});
this.handleGetpageWalletAccount({ ...values });
}
} catch (error) {}
标签:React,walletAccountCode,const,log,res,react,values,187,showBalanceMsg 来源: https://blog.csdn.net/weixin_43392489/article/details/120821612