路由优化

This commit is contained in:
zhang zhuo 2025-12-24 17:34:35 +08:00
parent 0b6b01102e
commit cb1afcd3d4
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@ export function filterAsyncRouter(routerMap) {
children: item.children ? filterAsyncRouter(item.children) : null,
component: loadComponent(item.component)
}
if (item.path.includes(':')) {
item['props'] = true
}
accessedRouters.push(route)
})
return accessedRouters