修复前端金额展示并整理依赖

This commit is contained in:
yml
2026-06-09 20:32:17 +08:00
parent 4c2199df58
commit 684e30862d
20 changed files with 129 additions and 194 deletions
+3 -1
View File
@@ -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
}