From d1fe600d80ace0ec4f5720418035bc117b454af5 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Wed, 25 Jun 2025 15:07:12 +0800 Subject: [PATCH] fix: auto route (#3384) --- ui/src/router/common.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/router/common.ts b/ui/src/router/common.ts index c95538703..d033bdb8a 100644 --- a/ui/src/router/common.ts +++ b/ui/src/router/common.ts @@ -59,8 +59,8 @@ export const getSameRouteList: ( */ export const getPermissionRoute = (routes: Array, to: RouteLocationNormalized) => { const routeName: string = to.meta - ? to.meta.permissionRoute - ? (to.meta.permissionRoute as string) + ? to.meta.sameRoute + ? (to.meta.sameRoute as string) : (to.name as string) : (to.name as string) const routeList = getSameRouteList(routes, routeName)