fix(frontend): 修正 AI Studio 和 Client 的标签显示

- API Key 账户:显示「AI Studio」
- 自定义 OAuth Client 账户:显示「Client」

之前错误地将两者都显示为同一标签,现在已修正。
This commit is contained in:
IanShaw027
2026-01-04 10:39:28 +08:00
parent 482bc289bf
commit 43d9ef7f62
2 changed files with 4 additions and 4 deletions

View File

@@ -90,8 +90,8 @@ const tierLabel = computed(() => {
return tierMap[creds?.tier_id || ''] || 'Personal'
}
// API Key: 显示 Client
return 'Client'
// API Key: 显示 AI Studio
return 'AI Studio'
})
// Tier Badge 样式

View File

@@ -606,8 +606,8 @@ const geminiAuthTypeLabel = computed(() => {
const tierLabel = geminiTier.value ? tierMap[geminiTier.value] || 'Free' : 'Free'
return `GCP ${tierLabel}`
} else if (oauthType === 'ai_studio') {
// AI Studio: just show "AI Studio" (no tier)
return 'AI Studio'
// 自定义 OAuth Client: show "Client" (no tier)
return 'Client'
}
return null