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'
|
return tierMap[creds?.tier_id || ''] || 'Personal'
|
||||||
}
|
}
|
||||||
|
|
||||||
// API Key: 显示 Client
|
// API Key: 显示 AI Studio
|
||||||
return 'Client'
|
return 'AI Studio'
|
||||||
})
|
})
|
||||||
|
|
||||||
// Tier Badge 样式
|
// Tier Badge 样式
|
||||||
|
|||||||
@@ -606,8 +606,8 @@ const geminiAuthTypeLabel = computed(() => {
|
|||||||
const tierLabel = geminiTier.value ? tierMap[geminiTier.value] || 'Free' : 'Free'
|
const tierLabel = geminiTier.value ? tierMap[geminiTier.value] || 'Free' : 'Free'
|
||||||
return `GCP ${tierLabel}`
|
return `GCP ${tierLabel}`
|
||||||
} else if (oauthType === 'ai_studio') {
|
} else if (oauthType === 'ai_studio') {
|
||||||
// AI Studio: just show "AI Studio" (no tier)
|
// 自定义 OAuth Client: show "Client" (no tier)
|
||||||
return 'AI Studio'
|
return 'Client'
|
||||||
}
|
}
|
||||||
|
|
||||||
return null
|
return null
|
||||||
|
|||||||
Reference in New Issue
Block a user