From 9b330a1f513d3af9233b9a9dde6bdfeeefbc3393 Mon Sep 17 00:00:00 2001 From: renchao8697 Date: Wed, 12 Apr 2023 14:18:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E6=97=B6=EF=BC=8C=E5=A4=9A=E7=BA=A7=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E5=8F=AA=E6=9C=89=E4=B8=80=E4=B8=AA=E5=AD=90=E8=B7=AF?= =?UTF-8?q?=E4=B8=94=E7=88=B6=E8=B7=AF=E7=94=B1=E6=9C=AA=E4=BD=BF=E7=94=A8?= =?UTF-8?q?alwaysShow=E6=97=B6=EF=BC=8C=E5=AD=90=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E6=9C=AA=E6=B7=BB=E5=8A=A0=E8=87=B3=E8=B7=AF=E7=94=B1=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/routerHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/routerHelper.ts b/src/utils/routerHelper.ts index bc80677..b49377d 100644 --- a/src/utils/routerHelper.ts +++ b/src/utils/routerHelper.ts @@ -70,7 +70,7 @@ export const generateRoutesFn1 = ( if (isUrl(item) && (onlyOneChild === item || route.path === item)) { data = Object.assign({}, route) } else { - const routePath = pathResolve(basePath, onlyOneChild || route.path) + const routePath = onlyOneChild ?? pathResolve(basePath, route.path) if (routePath === item || meta.followRoute === item) { data = Object.assign({}, route) }