Browse Source

fix: reload when press enter in hit items tmp (#31003)

pull/31031/head
vagusX 3 years ago
committed by GitHub
parent
commit
53a44a29f3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      site/theme/template/Layout/Header/SearchBar.tsx

2
site/theme/template/Layout/Header/SearchBar.tsx

@ -115,6 +115,8 @@ export const SearchBar = ({
const navigator = React.useRef({
navigate({ itemUrl }: { itemUrl: string }) {
browserHistory.push(itemUrl);
// should use history from bisheng and remove this `reload` calls
window.location.reload(false);
},
}).current;

Loading…
Cancel
Save