修改路由
This commit is contained in:
parent
3ce89c21cf
commit
50aeb20502
|
|
@ -86,7 +86,7 @@ export function findFirstValidRoute(routes: RouteRecordRaw[]): string | undefine
|
|||
}
|
||||
//通过权限字符查询路由路径
|
||||
export function getRoutePath(perms: string) {
|
||||
console.log(router.getRoutes())
|
||||
const router = useRouter()
|
||||
return router.getRoutes().find((item) => item.meta?.perms == perms)?.path || ''
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue