From 1c31109663514955f34a28bb6eae3f41b24fe971 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 7 Dec 2021 12:40:36 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20MenuGruop=E9=AB=98=E4=BA=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/MenuButtonGroup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/MenuButtonGroup.js b/components/MenuButtonGroup.js index 34021131..af9dff85 100644 --- a/components/MenuButtonGroup.js +++ b/components/MenuButtonGroup.js @@ -25,7 +25,7 @@ const MenuButtonGroup = ({ allowCollapse = false }) => {
{links.map(link => { if (link.show) { - const selected = router.pathname === link.to + const selected = (router.pathname === link.to) || (router.asPath === link.to) return