A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: set search value when pathname is search
shuai37d9b613a671
diff --git a/ui/src/components/Header/index.tsx b/ui/src/components/Header/index.tsxindex 3b44a470..44f85882 100644--- a/ui/src/components/Header/index.tsx+++ b/ui/src/components/Header/index.tsx@@ -82,7 +82,7 @@ const Header: FC = () => {};useEffect(() => {- if (q) {+ if (q && location.pathname === '/search') {handleInput(q);}}, [q]);