Commit 29108b2e by wans10

fix(topup): 修复用户配额获取逻辑

- 移除用户ID检查条件,始终获取最新用户数据
- 确保余额等统计信息准确性
- 解决用户状态更新不及时的问题
parent a0d0659e
......@@ -465,9 +465,8 @@ const TopUp = () => {
};
useEffect(() => {
if (!userState?.user?.id) {
getUserQuota().then();
}
// 始终获取最新用户数据,确保余额等统计信息准确
getUserQuota().then();
setTransferAmount(getQuotaPerUnit());
}, []);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment