From 9326bf96fc52482184d4c9b4ddc553ad0e38b3d1 Mon Sep 17 00:00:00 2001 From: t0ng7u Date: Mon, 14 Jul 2025 23:47:45 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=BD=20style(ui):=20Change=20the=20size=20?= =?UTF-8?q?of=20the=20icons=20in=20the=20dashboard=20to=20normal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/Detail/index.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/web/src/pages/Detail/index.js b/web/src/pages/Detail/index.js index 523283b6..d560177c 100644 --- a/web/src/pages/Detail/index.js +++ b/web/src/pages/Detail/index.js @@ -520,7 +520,7 @@ const Detail = (props) => { { title: t('当前余额'), value: renderQuota(userState?.user?.quota), - icon: , + icon: , avatarColor: 'blue', onClick: () => navigate('/console/topup'), trendData: [], @@ -529,7 +529,7 @@ const Detail = (props) => { { title: t('历史消耗'), value: renderQuota(userState?.user?.used_quota), - icon: , + icon: , avatarColor: 'purple', trendData: [], trendColor: '#8b5cf6' @@ -543,7 +543,7 @@ const Detail = (props) => { { title: t('请求次数'), value: userState.user?.request_count, - icon: , + icon: , avatarColor: 'green', trendData: [], trendColor: '#10b981' @@ -551,7 +551,7 @@ const Detail = (props) => { { title: t('统计次数'), value: times, - icon: , + icon: , avatarColor: 'cyan', trendData: trendData.times, trendColor: '#06b6d4' @@ -565,7 +565,7 @@ const Detail = (props) => { { title: t('统计额度'), value: renderQuota(consumeQuota), - icon: , + icon: , avatarColor: 'yellow', trendData: trendData.consumeQuota, trendColor: '#f59e0b' @@ -573,7 +573,7 @@ const Detail = (props) => { { title: t('统计Tokens'), value: isNaN(consumeTokens) ? 0 : consumeTokens, - icon: , + icon: , avatarColor: 'pink', trendData: trendData.tokens, trendColor: '#ec4899' @@ -587,7 +587,7 @@ const Detail = (props) => { { title: t('平均RPM'), value: performanceMetrics.avgRPM, - icon: , + icon: , avatarColor: 'indigo', trendData: trendData.rpm, trendColor: '#6366f1' @@ -595,7 +595,7 @@ const Detail = (props) => { { title: t('平均TPM'), value: performanceMetrics.avgTPM, - icon: , + icon: , avatarColor: 'orange', trendData: trendData.tpm, trendColor: '#f97316'