mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-03 23:16:52 +00:00
BugFix: 搜索
This commit is contained in:
@@ -8,7 +8,7 @@ const SearchInput = ({ currentTag }) => {
|
|||||||
const [searchValue, setSearchValue] = useState('')
|
const [searchValue, setSearchValue] = useState('')
|
||||||
const handleSearch = () => {
|
const handleSearch = () => {
|
||||||
if (searchValue && searchValue !== '') {
|
if (searchValue && searchValue !== '') {
|
||||||
Router.push({ pathname: '/', query: { s: searchValue } }).then(r => {
|
Router.push({ pathname: '/page/1', query: { s: searchValue } }).then(r => {
|
||||||
console.log(r)
|
console.log(r)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user