From a2ac3c81c94a7232f95ef2bc29bc5e6a5dabfcc1 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 19 Oct 2021 13:35:19 +0800 Subject: [PATCH] =?UTF-8?q?BugFix:=20=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/SearchInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/SearchInput.js b/components/SearchInput.js index 94a30287..03519aa4 100644 --- a/components/SearchInput.js +++ b/components/SearchInput.js @@ -8,7 +8,7 @@ const SearchInput = ({ currentTag }) => { const [searchValue, setSearchValue] = useState('') const handleSearch = () => { if (searchValue && searchValue !== '') { - Router.push({ pathname: '/', query: { s: searchValue } }).then(r => { + Router.push({ pathname: '/page/1', query: { s: searchValue } }).then(r => { console.log(r) }) } else {