chore: small fixes and optimizations

This commit is contained in:
jialin
2025-11-17 20:15:26 +08:00
parent 906f59a566
commit e22b5ed516
9 changed files with 63 additions and 47 deletions
+12 -12
View File
@@ -125,18 +125,18 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
icon: <IconFont type="icon-basic" />,
field: 'name'
},
{
value: TABKeysMap.SCHEDULING,
label: intl.formatMessage({ id: 'models.form.scheduling' }),
icon: <IconFont type="icon-model" />,
field: 'scheduleType'
},
{
value: TABKeysMap.PERFORMANCE,
label: intl.formatMessage({ id: 'models.form.performance' }),
icon: <IconFont type="icon-speed" />,
field: 'extended_kv_cache.enabled'
},
{
value: TABKeysMap.SCHEDULING,
label: intl.formatMessage({ id: 'models.form.scheduling' }),
icon: <IconFont type="icon-model" />,
field: 'scheduleType'
},
{
value: TABKeysMap.ADVANCED,
label: intl.formatMessage({ id: 'resources.form.advanced' }),
@@ -476,18 +476,18 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
accordion={false}
onChange={handleOnCollapseChange}
items={[
{
key: TABKeysMap.SCHEDULING,
label: intl.formatMessage({ id: 'models.form.scheduling' }),
forceRender: true,
children: <ScheduleTypeForm></ScheduleTypeForm>
},
{
key: TABKeysMap.PERFORMANCE,
label: intl.formatMessage({ id: 'models.form.performance' }),
forceRender: true,
children: <Performance></Performance>
},
{
key: TABKeysMap.SCHEDULING,
label: intl.formatMessage({ id: 'models.form.scheduling' }),
forceRender: true,
children: <ScheduleTypeForm></ScheduleTypeForm>
},
{
key: TABKeysMap.ADVANCED,
label: intl.formatMessage({ id: 'resources.form.advanced' }),