Commit 73d145ea by zhaochengxiang

bug fix

parent 03daa012
...@@ -179,7 +179,7 @@ const UsersItem = ({ loading, users, value, onChange }) => { ...@@ -179,7 +179,7 @@ const UsersItem = ({ loading, users, value, onChange }) => {
return ( return (
<Select loading={loading} searchValue allowClear <Select loading={loading} searchValue allowClear
placeholder='请选择用户' placeholder='请选择用户'
value={value?.id} value={options?value?.id:undefined}
searchValue={searchValue} searchValue={searchValue}
onSearch={(val) => { onSearch={(val) => {
setSearchValue(val) setSearchValue(val)
......
...@@ -265,7 +265,7 @@ export const UsersItem = ({ loading, users, value, onChange }) => { ...@@ -265,7 +265,7 @@ export const UsersItem = ({ loading, users, value, onChange }) => {
return ( return (
<Select loading={loading} mode='multiple' allowClear <Select loading={loading} mode='multiple' allowClear
placeholder='请选择用户' placeholder='请选择用户'
value={value?.map(item => item.id)} value={options?value?.map(item => item.id):[]}
searchValue={searchValue} searchValue={searchValue}
onSearch={(val) => { onSearch={(val) => {
setSearchValue(val) setSearchValue(val)
......
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