fix: gpus link

This commit is contained in:
jialin
2025-11-25 11:34:11 +08:00
parent 6b402e944b
commit 33defab7df
5 changed files with 24 additions and 11 deletions
+13 -1
View File
@@ -91,6 +91,18 @@ const BackendFields: React.FC = () => {
return option.data.title;
};
const versionOptionRender = (option: any) => {
const { data } = option;
return data.is_deprecated ? (
<span>
{data.title}
<span className="text-tertiary m-l-4">[Deprecated]</span>
</span>
) : (
<span>{data.title}</span>
);
};
const labelRender = (option: any) => {
return option.title;
};
@@ -121,7 +133,7 @@ const BackendFields: React.FC = () => {
<SealSelect
allowClear
options={backendVersions}
optionRender={optionRender}
optionRender={versionOptionRender}
labelRender={labelRender}
placeholder={intl.formatMessage({
id: 'models.form.backendVersion.holder'
@@ -47,6 +47,7 @@ const CustomBackend: React.FC = () => {
<SealInput.Input
required
allowClear
onBlur={handleImageNameOnBlur}
label={intl.formatMessage({ id: 'backend.imageName' })}
></SealInput.Input>
</Form.Item>
@@ -65,6 +66,7 @@ const CustomBackend: React.FC = () => {
scaleSize={false}
alwaysFocus={true}
autoSize={{ minRows: 2, maxRows: 4 }}
onBlur={handleRunCommandOnBlur}
label={intl.formatMessage({ id: 'backend.runCommand' })}
description={intl.formatMessage({
id: 'backend.form.defaultExecuteCommand.tips'