顶部搜索栏为空处理

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

View File

@ -3,7 +3,7 @@ import { Input} from "antd";
import './Component.scss';
export default ({history}) => {
const [searchValue, setSearchValue] = useState(undefined);
const [searchValue, setSearchValue] = useState("");
function onGlobalSearch(e) {
history.push('/search?value=' + e.target.value);