装修相关

This commit is contained in:
Jason
2022-09-06 11:51:36 +08:00
parent 9ec547d9f4
commit 45a31db37f
31 changed files with 820 additions and 21 deletions

View File

@@ -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 || ''
}