顶部搜索优化

This commit is contained in:
谢思 2021-11-18 10:55:10 +08:00
parent 3087e5471a
commit d81d456d76
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ export default ({history}) => {
}
return (
<React.Fragment>
<div className="headSerach aboutSubTitle" onBlur={()=>setSearchValue(undefined)}>
<div className="headSerach aboutSubTitle" onBlur={()=>setSearchValue("")}>
<i className = "iconfont icon-bianzu11 font-15" onClick={()=>onGlobalSearch({target:{value:searchValue}})}></i>
<Input placeholder="请输入搜索关键字" onPressEnter={onGlobalSearch} onChange={(value)=>setSearchValue(value.target.value)} value={searchValue}></Input>
</div>