From ac3ff4be61736bbec3dc6132cad94bc46022f0bb Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Wed, 2 Mar 2022 10:40:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E6=96=87=E7=B4=A2=E5=BC=95=E5=BE=AE?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/NEXT/components/SearchInput.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/themes/NEXT/components/SearchInput.js b/themes/NEXT/components/SearchInput.js index f676a4fd..25dc8ccb 100644 --- a/themes/NEXT/components/SearchInput.js +++ b/themes/NEXT/components/SearchInput.js @@ -18,9 +18,10 @@ const SearchInput = ({ currentTag, currentSearch, cRef }) => { const handleSearch = (key) => { if (key && key !== '') { setLoadingState(true) - router.push({ pathname: '/search/' + key }).then(r => { - setLoadingState(false) - }) + // router.push({ pathname: '/search/' + key }).then(r => { + // setLoadingState(false) + // }) + location.href = '/search/' + key } else { router.push({ pathname: '/' }).then(r => { })