Merge pull request #3297 from rickyltwong/fix/simple-theme-search-bar

fix: search bar function
This commit is contained in:
tangly1024
2025-04-11 17:59:23 +08:00
committed by GitHub

View File

@@ -25,7 +25,7 @@ export default function NavBar(props) {
const onKeyUp = e => {
if (e.keyCode === 13) {
const search = document.getElementById('simple-search').innerText
const search = document.getElementById('simple-search').value
if (search) {
router.push({ pathname: '/search/' + search })
}