hexo 搜索调整标红方式

This commit is contained in:
tangly1024
2022-03-17 14:58:34 +08:00
parent 11cd974e38
commit e4f31cc860
4 changed files with 18 additions and 12 deletions

View File

@@ -21,7 +21,10 @@ const SearchInput = props => {
const key = searchInputRef.current.value
if (key && key !== '') {
setLoadingState(true)
location.href = '/search/' + key
router.push({ pathname: '/search/' + key }).then(r => {
setLoadingState(false)
})
// location.href = '/search/' + key
} else {
router.push({ pathname: '/' }).then(r => {})
}