From 9fde5d0c8e1b4cbf279f259ba5102195dd045dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E9=BE=99=E6=98=8C?= Date: Wed, 1 Mar 2023 16:18:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC,=E5=8F=82=E6=95=B0=E7=9B=B8=E5=90=8C?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B,=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E9=A1=B5=E5=90=8C=E6=97=B6=E9=AB=98=E4=BA=AE=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/hooks/useTag.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/layout/hooks/useTag.ts b/src/layout/hooks/useTag.ts index 40fb1922b5..ef8d5fc958 100644 --- a/src/layout/hooks/useTag.ts +++ b/src/layout/hooks/useTag.ts @@ -120,9 +120,15 @@ export function useTags() { function conditionHandle(item, previous, next) { if (isBoolean(route?.meta?.showLink) && route?.meta?.showLink === false) { if (Object.keys(route.query).length > 0) { - return isEqual(route.query, item.query) ? previous : next; + return isEqual(route.query, item.query) && + isEqual(route.path, item.path) + ? previous + : next; } else { - return isEqual(route.params, item.params) ? previous : next; + return isEqual(route.params, item.params) && + isEqual(route.path, item.path) + ? previous + : next; } } else { return route.path === item.path ? previous : next;