From 482bc289bf05f023dd1b6cc9e051322fba0a5284 Mon Sep 17 00:00:00 2001 From: IanShaw027 <131567472+IanShaw027@users.noreply.github.com> Date: Sun, 4 Jan 2026 10:38:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E5=AE=8C=E5=85=A8=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=20Gemini=20=E5=9B=9B=E7=A7=8D=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E6=96=B9=E5=BC=8F=E7=9A=84=E6=98=BE=E7=A4=BA=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **统一后的格式:** - 第一行:授权方式简称 + 用户等级 - 后续行:有限额显示模型进度条+统计数据+窗口时间,无限额显示「无限流」 **四种授权方式:** 1. **AI Studio OAuth** - 第一行:「AI Studio」 - 后续:「无限流」 2. **GCP Code Assist OAuth** (原 CLI) - 第一行:「GCP Free/Pro/Ultra」 - 后续:Pro/Flash 进度条 + 统计数据(0 req 0 /bin/zsh.00)+ 窗口时间 3. **Google One OAuth** (原 G1) - 第一行:「Google One Personal/Free/Pro/...」 - 后续:「无限流」 4. **API Key** (原 Gemini) - 第一行:「Client」 - 后续:「无限流」或「限流 XX」 **修改内容:** - AccountUsageCell.vue: 标签改名(CLI→GCP,G1→Google One),模型标签简化(Pro/Flash),保留统计数据 - AccountQuotaInfo.vue: 标签改名(Gemini→Client) --- .../src/components/account/AccountQuotaInfo.vue | 4 ++-- .../src/components/account/AccountUsageCell.vue | 14 ++++++-------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/frontend/src/components/account/AccountQuotaInfo.vue b/frontend/src/components/account/AccountQuotaInfo.vue index b639a7e2..4bc91be3 100644 --- a/frontend/src/components/account/AccountQuotaInfo.vue +++ b/frontend/src/components/account/AccountQuotaInfo.vue @@ -90,8 +90,8 @@ const tierLabel = computed(() => { return tierMap[creds?.tier_id || ''] || 'Personal' } - // AI Studio 或其他 - return 'Gemini' + // API Key: 显示 Client + return 'Client' }) // Tier Badge 样式 diff --git a/frontend/src/components/account/AccountUsageCell.vue b/frontend/src/components/account/AccountUsageCell.vue index 9b89fefc..1ce0f708 100644 --- a/frontend/src/components/account/AccountUsageCell.vue +++ b/frontend/src/components/account/AccountUsageCell.vue @@ -245,20 +245,18 @@
@@ -587,7 +585,7 @@ const geminiAuthTypeLabel = computed(() => {
if (props.account.type !== 'oauth') return null
if (oauthType === 'google_one') {
- // Google One: show "G1" + tier
+ // Google One: show "Google One" + tier
const tierMap: Record