From cb61d3b100df558c663e7dd3d2f5b1e2669a3d5e Mon Sep 17 00:00:00 2001 From: Gsh <15170702455@163.com> Date: Sat, 14 Feb 2026 22:04:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20apikey=E7=94=A8=E9=87=8F=E7=99=BE?= =?UTF-8?q?=E5=88=86=E6=AF=94=E4=BF=9D=E7=95=99=E4=B8=A4=E4=BD=8D=E5=B0=8F?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../userPersonalCenter/components/APIKeyManagement.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Yi.Ai.Vue3/src/components/userPersonalCenter/components/APIKeyManagement.vue b/Yi.Ai.Vue3/src/components/userPersonalCenter/components/APIKeyManagement.vue index 9772291f..965c6cbe 100644 --- a/Yi.Ai.Vue3/src/components/userPersonalCenter/components/APIKeyManagement.vue +++ b/Yi.Ai.Vue3/src/components/userPersonalCenter/components/APIKeyManagement.vue @@ -297,7 +297,7 @@ function formatQuota(num: number | null | undefined): string { function getQuotaPercentage(used: number | null | undefined, limit: number | null | undefined) { if (limit == null || limit === 0 || used == null) return 0; - return Math.min((used / limit) * 100, 100); + return Number(Math.min((used / limit) * 100, 100).toFixed(2)); } // 获取配额状态颜色