fix: 修复权限校验逻辑,移除冗余返回语句
This commit is contained in:
@ -5,6 +5,5 @@ export function checkRoutePermission(routeName: string) {
|
||||
const allowAccessRoutes = userStore.allowAccessRoutes;
|
||||
|
||||
if (!routeName) return false;
|
||||
return true
|
||||
return allowAccessRoutes.includes(routeName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user