fix: apikey custom tag

This commit is contained in:
jialin
2026-04-15 11:30:40 +08:00
committed by jialin
parent e1b2a4aee2
commit 7b743f35b3
2 changed files with 15 additions and 12 deletions
+1
View File
@@ -9,6 +9,7 @@ export interface ListItem {
allowed_model_names: string[];
custom?: string;
scope?: string[];
is_custom?: boolean;
}
export interface FormData {
+14 -12
View File
@@ -62,18 +62,20 @@ const useModelsColumns = ({
<AutoTooltip ghost style={{ maxWidth: 400 }}>
<span className="text-primary">{text}</span>
</AutoTooltip>
<Tag
style={{
marginLeft: 8,
borderRadius: 12,
color: 'var(--ant-color-text-tertiary)',
borderColor: 'var(--ant-color-split)',
backgroundColor: 'transparent'
}}
variant="outlined"
>
{intl.formatMessage({ id: 'playground.params.custom' })}
</Tag>
{record.is_custom && (
<Tag
style={{
marginLeft: 8,
borderRadius: 12,
color: 'var(--ant-color-text-tertiary)',
borderColor: 'var(--ant-color-split)',
backgroundColor: 'transparent'
}}
variant="outlined"
>
{intl.formatMessage({ id: 'playground.params.custom' })}
</Tag>
)}
</span>
)
},