|
@@ -121,10 +121,14 @@ function Adq() {
|
|
|
placeholder='名称搜索'
|
|
|
style={{ width: '100%' }}
|
|
|
showSearch
|
|
|
- filterOption={(input: any, option: any) =>
|
|
|
- (option!.children as unknown as string).toLowerCase().includes(input.toLowerCase())
|
|
|
+ filterOption={(input: any, option: any) => {
|
|
|
+ return (option!?.children as unknown as string)?.toLowerCase()?.includes(input?.toLowerCase())
|
|
|
+ }
|
|
|
+
|
|
|
} allowClear onChange={(value: any) => {
|
|
|
- setUserId(value.toString())
|
|
|
+ if(value){
|
|
|
+ setUserId(value.toString())
|
|
|
+ }
|
|
|
}}>
|
|
|
{
|
|
|
userAll.map((item: any) => {
|