Commit c449f5f3 authored by 卢均锐's avatar 卢均锐

fix: [14839]

parent ecf18d45
......@@ -38,7 +38,7 @@ const CustomInputSearch = props => {
value={props.value}
{...props.props['x-component-props']}
>
{dataOption.map(d => <Option value={d.id} key={d.id}>{d.name}</Option>)}
{dataOption?.map(d => <Option value={d.id} key={d.id}>{d.name}</Option>)}
</Select>
</Space>
);
......
......@@ -16,7 +16,7 @@ export const searchBrandOptionEffect = (
}).then(res => {
context.setFieldState(fieldName, state => {
state.props['x-component-props'].dataoption = res.data?.data?.map(item => {
return { label: item.name, value: item.id };
return { name: item.name, id: item.id };
});
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment