From b1d5d25264887e9bba9a328775d192c12b2ddfcd Mon Sep 17 00:00:00 2001 From: hh <2587203630@qq.com> Date: Thu, 9 Jul 2026 14:18:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B6=88=E8=B4=B9=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E9=87=91=E9=A2=9D=E5=85=85=E5=80=BC?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=BA=E6=AD=A3=E6=95=B4=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/routes/account.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/frontend/src/routes/account.tsx b/core/frontend/src/routes/account.tsx index 6c0313b..9dfbbb3 100644 --- a/core/frontend/src/routes/account.tsx +++ b/core/frontend/src/routes/account.tsx @@ -177,6 +177,7 @@ export function AccountPage({ billing, projects, team, onRecharge }: { const selectedCard = RECHARGE.find((item) => item.amt === recharge); const effectiveAmount = Number(customAmt) > 0 ? Number(customAmt) : recharge; const effectiveBonus = Number(customAmt) > 0 ? 0 : selectedCard?.bonusAmt || 0; + const setCustomIntegerAmount = (value: string) => setCustomAmt(value.replace(/\D/g, "").replace(/^0+/, "")); async function submitRecharge() { if (effectiveAmount <= 0) return; @@ -318,7 +319,7 @@ export function AccountPage({ billing, projects, team, onRecharge }: {
自定义金额
- setCustomAmt(event.target.value)} /> + setCustomIntegerAmount(event.target.value)} />