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[]; allowed_model_names: string[];
custom?: string; custom?: string;
scope?: string[]; scope?: string[];
is_custom?: boolean;
} }
export interface FormData { export interface FormData {
+14 -12
View File
@@ -62,18 +62,20 @@ const useModelsColumns = ({
<AutoTooltip ghost style={{ maxWidth: 400 }}> <AutoTooltip ghost style={{ maxWidth: 400 }}>
<span className="text-primary">{text}</span> <span className="text-primary">{text}</span>
</AutoTooltip> </AutoTooltip>
<Tag {record.is_custom && (
style={{ <Tag
marginLeft: 8, style={{
borderRadius: 12, marginLeft: 8,
color: 'var(--ant-color-text-tertiary)', borderRadius: 12,
borderColor: 'var(--ant-color-split)', color: 'var(--ant-color-text-tertiary)',
backgroundColor: 'transparent' borderColor: 'var(--ant-color-split)',
}} backgroundColor: 'transparent'
variant="outlined" }}
> variant="outlined"
{intl.formatMessage({ id: 'playground.params.custom' })} >
</Tag> {intl.formatMessage({ id: 'playground.params.custom' })}
</Tag>
)}
</span> </span>
) )
}, },