mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-06-09 07:42:23 +08:00
装修相关
This commit is contained in:
@@ -86,6 +86,7 @@ export function findFirstValidRoute(routes: RouteRecordRaw[]): string | undefine
|
||||
}
|
||||
|
||||
export function getRoutePath(perms: string) {
|
||||
console.log(router.getRoutes().find((item) => item.meta?.perms == perms)?.path)
|
||||
return router.getRoutes().find((item) => item.meta?.perms == perms)?.path || ''
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user