feat: 本次提交更新内容如下

eslint规则校验
This commit is contained in:
2025-07-28 17:18:03 +08:00
parent a9306bb8ba
commit e1ed0e5dff
61 changed files with 275 additions and 225 deletions

View File

@@ -159,7 +159,7 @@ export const getRouteTitle = (path: string): string => {
// 检查路由权限
export const checkRoutePermission = (
path: string,
userRole: string = "user"
userRole: string = "user",
): boolean => {
const allowedRoutes =
routePermissions[userRole as keyof typeof routePermissions] || [];

View File

@@ -16,7 +16,7 @@ Object.values(modules).forEach((mod: any) => {
// 权限包装
function wrapWithPermission(
route: RouteObject & { auth?: boolean; requiredRole?: string }
route: RouteObject & { auth?: boolean; requiredRole?: string },
) {
if (route.auth) {
return {