From 64dbf4dc73efbde63d0f997ca84a1558c6ba6c65 Mon Sep 17 00:00:00 2001 From: real-jacket <1762982273@qq.com> Date: Tue, 5 Sep 2023 00:07:26 +0800 Subject: [PATCH] fix(heo): fix heo category selected style --- themes/heo/components/CategoryBar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/heo/components/CategoryBar.js b/themes/heo/components/CategoryBar.js index ee0a7a0c..eccd9685 100644 --- a/themes/heo/components/CategoryBar.js +++ b/themes/heo/components/CategoryBar.js @@ -28,6 +28,7 @@ export default function CategoryBar(props) { setScrollRight(!scrollRight) } } + return
@@ -54,7 +55,8 @@ export default function CategoryBar(props) { */ const MenuItem = ({ href, name }) => { const router = useRouter() - const selected = router.pathname === href + const { category } = router.query + const selected = category === name return
{name}