From acdfd862866a12898c9d6a8eec8b0d6b467f248c Mon Sep 17 00:00:00 2001 From: "Apple\\Apple" Date: Mon, 26 May 2025 22:30:04 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style(ui):=20Adjust=20the=20size?= =?UTF-8?q?=20of=20the=20icon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/TokensTable.js | 6 +++--- web/src/pages/Detail/index.js | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/web/src/components/TokensTable.js b/web/src/components/TokensTable.js index 1b17aef2..b54635ff 100644 --- a/web/src/components/TokensTable.js +++ b/web/src/components/TokensTable.js @@ -583,7 +583,7 @@ const TokensTable = () => { size="medium" color="blue" > - +
{t('当前余额')}
@@ -603,7 +603,7 @@ const TokensTable = () => { size="medium" color="purple" > - +
{t('累计消费')}
@@ -623,7 +623,7 @@ const TokensTable = () => { size="medium" color="green" > - +
{t('请求次数')}
diff --git a/web/src/pages/Detail/index.js b/web/src/pages/Detail/index.js index bdbee22f..baaec158 100644 --- a/web/src/pages/Detail/index.js +++ b/web/src/pages/Detail/index.js @@ -449,42 +449,42 @@ const Detail = (props) => { { title: t('当前余额'), value: renderQuota(userState?.user?.quota), - icon: , + icon: , color: 'bg-blue-50', avatarColor: 'blue', }, { title: t('历史消耗'), value: renderQuota(userState?.user?.used_quota), - icon: , + icon: , color: 'bg-purple-50', avatarColor: 'purple', }, { title: t('请求次数'), value: userState.user?.request_count, - icon: , + icon: , color: 'bg-green-50', avatarColor: 'green', }, { title: t('统计额度'), value: renderQuota(consumeQuota), - icon: , + icon: , color: 'bg-yellow-50', avatarColor: 'yellow', }, { title: t('统计Tokens'), value: isNaN(consumeTokens) ? 0 : consumeTokens, - icon: , + icon: , color: 'bg-pink-50', avatarColor: 'pink', }, { title: t('统计次数'), value: times, - icon: , + icon: , color: 'bg-teal-50', avatarColor: 'cyan', }, @@ -494,7 +494,7 @@ const Detail = (props) => { times / ((Date.parse(end_timestamp) - Date.parse(start_timestamp)) / 60000) ).toFixed(3), - icon: , + icon: , color: 'bg-indigo-50', avatarColor: 'indigo', }, @@ -505,7 +505,7 @@ const Detail = (props) => { ((Date.parse(end_timestamp) - Date.parse(start_timestamp)) / 60000); return isNaN(tpm) ? '0' : tpm.toFixed(3); })(), - icon: , + icon: , color: 'bg-orange-50', avatarColor: 'orange', }, @@ -613,7 +613,7 @@ const Detail = (props) => { -
+
{statsData.map((stat, idx) => (