顶部搜索栏为空处理
This commit is contained in:
parent
4e8f304262
commit
3087e5471a
|
@ -3,7 +3,7 @@ import { Input} from "antd";
|
||||||
import './Component.scss';
|
import './Component.scss';
|
||||||
|
|
||||||
export default ({history}) => {
|
export default ({history}) => {
|
||||||
const [searchValue, setSearchValue] = useState(undefined);
|
const [searchValue, setSearchValue] = useState("");
|
||||||
|
|
||||||
function onGlobalSearch(e) {
|
function onGlobalSearch(e) {
|
||||||
history.push('/search?value=' + e.target.value);
|
history.push('/search?value=' + e.target.value);
|
||||||
|
|
Loading…
Reference in New Issue