fetch(modify):修复角色分配权限
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m36s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m36s
This commit is contained in:
@@ -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 // 标记为动态路由,用于退出时清理
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user