From 6f98a7958c1e05cd1b696d86d188186979c8ab6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=82=A0=E9=9D=99=E8=90=9D=E8=8E=89?= Date: Thu, 22 Sep 2022 13:59:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E6=8B=BC=E6=8E=A5=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#319)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/components/MenuContent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/components/MenuContent.vue b/src/layouts/components/MenuContent.vue index 2ba7a09..fc9977e 100644 --- a/src/layouts/components/MenuContent.vue +++ b/src/layouts/components/MenuContent.vue @@ -57,7 +57,7 @@ const getMenuList = (list: MenuRoute[], basePath?: string): MenuRoute[] => { }); return list .map((item) => { - const path = basePath ? `${basePath}/${item.path}` : item.path; + const path = basePath && !item.path.includes(basePath) ? `${basePath}/${item.path}` : item.path; return { path, title: item.meta?.title,