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 {
@@ -62,6 +62,7 @@ const useModelsColumns = ({
<AutoTooltip ghost style={{ maxWidth: 400 }}>
<span className="text-primary">{text}</span>
</AutoTooltip>
{record.is_custom && (
<Tag
style={{
marginLeft: 8,
@@ -74,6 +75,7 @@ const useModelsColumns = ({
>
{intl.formatMessage({ id: 'playground.params.custom' })}
</Tag>
)}
</span>
)
},