diff --git a/admin/src/router/index.ts b/admin/src/router/index.ts index 7b6d8926..283e0f8b 100644 --- a/admin/src/router/index.ts +++ b/admin/src/router/index.ts @@ -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 || '' }