diff --git a/src/hooks/web/useCrudSchemas.ts b/src/hooks/web/useCrudSchemas.ts index f74c14467..541ca87b6 100644 --- a/src/hooks/web/useCrudSchemas.ts +++ b/src/hooks/web/useCrudSchemas.ts @@ -271,6 +271,10 @@ const filterFormSchema = (crudSchema: CrudSchema[], allSchemas: AllSchemas): For comonentProps = { options: options } + // 可编辑字典-下拉框默认选中第一条数据 --喜婷 + if(options.length>0&&!schemaItem.form?.componentProps?.disabled){ + defaultValue = options[0].value + } if (!(schemaItem.form && schemaItem.form.component)) component = 'Select' }