Skip to content

Commit 1f82d29

Browse files
committed
fix: auth route
1 parent 68f26d6 commit 1f82d29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/router/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export const getSameRouteList: (
5959
*/
6060
export const getPermissionRoute = (routes: Array<RouteRecordRaw>, to: RouteLocationNormalized) => {
6161
const routeName: string = to.meta
62-
? to.meta.permissionRoute
63-
? (to.meta.permissionRoute as string)
62+
? to.meta.sameRoute
63+
? (to.meta.sameRoute as string)
6464
: (to.name as string)
6565
: (to.name as string)
6666
const routeList = getSameRouteList(routes, routeName)

0 commit comments

Comments
 (0)