fetch(modify):修复角色分配权限
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m36s

This commit is contained in:
sexygoat
2026-02-02 17:08:49 +08:00
parent f62437379d
commit 06cde977ad
14 changed files with 789 additions and 267 deletions

View File

@@ -173,7 +173,11 @@ function convertRouteComponent(
// 基础路由配置
const converted: ConvertedRoute = {
...routeConfig,
component: undefined
component: undefined,
meta: {
...routeConfig.meta,
dynamic: true // 标记为动态路由,用于退出时清理
}
}
// 是否为一级菜单
@@ -229,7 +233,10 @@ function handleLayoutRoute(
path: route.path,
name: route.name,
component: loadComponent(component as string, String(route.name)),
meta: route.meta
meta: {
...route.meta,
dynamic: true // 标记为动态路由,用于退出时清理
}
}
]
}