fix(frontend): 修正 AI Studio 和 Client 的标签显示
- API Key 账户:显示「AI Studio」 - 自定义 OAuth Client 账户:显示「Client」 之前错误地将两者都显示为同一标签,现在已修正。
This commit is contained in:
@@ -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 样式
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user