fix: page error when edit error

This commit is contained in:
jialin
2025-02-25 14:03:14 +08:00
parent f91311144b
commit 0f7d04e0b9
30 changed files with 317 additions and 306 deletions
@@ -394,8 +394,8 @@ const GroundEmbedding: React.FC<MessageProps> = forwardRef((props, ref) => {
</Form.Item>
);
}
return null;
}, modelMeta);
return [];
}, [modelMeta]);
const outputItems = useMemo(() => {
return [
@@ -406,7 +406,7 @@ const GroundReranker: React.FC<MessageProps> = forwardRef((props, ref) => {
);
}
return null;
}, modelMeta);
}, [modelMeta]);
const handleClearDocuments = () => {
setTextList([
+1 -1
View File
@@ -99,7 +99,7 @@ const PlaygroundEmbedding: React.FC = () => {
header={{
title: intl.formatMessage({ id: 'menu.playground.embedding' }),
style: {
paddingInline: 'var(--layout-content-inlinepadding)'
paddingInline: 'var(--layout-content-header-inlinepadding)'
},
breadcrumb: {}
}}
+1 -1
View File
@@ -169,7 +169,7 @@ const TextToImages: React.FC = () => {
</div>
),
style: {
paddingInline: 'var(--layout-content-inlinepadding)'
paddingInline: 'var(--layout-content-header-inlinepadding)'
},
breadcrumb: {}
}}
+1 -1
View File
@@ -166,7 +166,7 @@ const Playground: React.FC = () => {
</div>
),
style: {
paddingInline: 'var(--layout-content-inlinepadding)'
paddingInline: 'var(--layout-content-header-inlinepadding)'
},
breadcrumb: {}
}}
+1 -1
View File
@@ -103,7 +103,7 @@ const PlaygroundRerank: React.FC = () => {
header={{
title: intl.formatMessage({ id: 'menu.playground.rerank' }),
style: {
paddingInline: 'var(--layout-content-inlinepadding)'
paddingInline: 'var(--layout-content-header-inlinepadding)'
},
breadcrumb: {}
}}
+1 -1
View File
@@ -212,7 +212,7 @@ const Playground: React.FC = () => {
</div>
),
style: {
paddingInline: 'var(--layout-content-inlinepadding)'
paddingInline: 'var(--layout-content-header-inlinepadding)'
},
breadcrumb: {}
}}