mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-22 14:45:43 +08:00
修改路由
This commit is contained in:
@@ -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 || ''
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user