feat: allowAccessRoutes只存name
This commit is contained in:
@ -6,6 +6,5 @@ export function checkRoutePermission(routeName: string) {
|
||||
|
||||
if (!routeName) return false;
|
||||
|
||||
const route = allowAccessRoutes.find((route) => route.name === routeName);
|
||||
return !!route;
|
||||
return allowAccessRoutes.includes(routeName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user