修复前端金额展示并整理依赖
This commit is contained in:
@@ -44,7 +44,9 @@ export async function fetchWalletLedger(page = 1, pageSize = 20) {
|
||||
|
||||
export async function rechargeWallet(amountYuan: number) {
|
||||
const amount_cent = yuanToCent(amountYuan)
|
||||
const { data } = await apiClient.post<ApiResponse<WalletAccount>>('/wallet/recharge', { amount_cent })
|
||||
const { data } = await apiClient.post<ApiResponse<WalletAccount>>('/wallet/recharge', {
|
||||
amount_cent,
|
||||
})
|
||||
return data.data
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user