diff --git a/src/routers/layout/search/pc/search.tsx b/src/routers/layout/search/pc/search.tsx index 5abb2a1..d23e23c 100644 --- a/src/routers/layout/search/pc/search.tsx +++ b/src/routers/layout/search/pc/search.tsx @@ -105,6 +105,7 @@ const NormalSearch = () => { handlerNavigate(value); }, handerHistorySubmit = (value: string) => { + inputRef.current!.value = value; handlerNavigate(value); addPCTagHistory(value); }; @@ -152,10 +153,12 @@ const AdvanceSearch = forwardRef(function Advance(props, ref) { onBlur(); }, handlerTagHistorySubmit = (tag: string) => { + tagRef.current!.value = tag; handlerNavigate(tag, getNameValue()); addPCTagHistory(tag); }, handlerNameHistorySubmit = (name: string) => { + nameRef.current!.value = name; handlerNavigate(getTagValue(), name); addPCNameHistory(name); };