From d9cd206da83d7f2946b2108a1597287c4e705560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Thu, 20 Nov 2025 13:52:46 +0800 Subject: [PATCH] =?UTF-8?q?chore(config):=20=E6=9B=B4=E6=96=B0=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E7=8E=AF=E5=A2=83API=E5=9F=BA=E7=A1=80URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将开发环境的API基础URL从'http://127.0.0.1:9200/api'更改为'https://cms-api.websoft.top/api' fix(withdraw): 修复提现页面表单重置逻辑 - 在提现成功后添加了await关键字以确保异步操作完成后再重置表单 --- config/env.ts | 2 +- src/dealer/withdraw/index.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/env.ts b/config/env.ts index f624194..525dff5 100644 --- a/config/env.ts +++ b/config/env.ts @@ -2,7 +2,7 @@ export const ENV_CONFIG = { // 开发环境 development: { - API_BASE_URL: 'http://127.0.0.1:9200/api', + API_BASE_URL: 'https://cms-api.websoft.top/api', APP_NAME: '开发环境', DEBUG: 'true', }, diff --git a/src/dealer/withdraw/index.tsx b/src/dealer/withdraw/index.tsx index bac427e..7686390 100644 --- a/src/dealer/withdraw/index.tsx +++ b/src/dealer/withdraw/index.tsx @@ -278,6 +278,8 @@ const DealerWithdraw: React.FC = () => { icon: 'success' }) + await + // 重置表单 setWithdrawAmount('')