Commit 73d145ea by zhaochengxiang

bug fix

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