fix: auto route (#3384)

This commit is contained in:
shaohuzhang1 2025-06-25 15:07:12 +08:00 committed by GitHub
parent 33a2a683e1
commit d1fe600d80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,8 +59,8 @@ export const getSameRouteList: (
*/
export const getPermissionRoute = (routes: Array<RouteRecordRaw>, 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)