Pre Merge pull request !10 from YANGJIANG/fix-route

pull/10/MERGE
YANGJIANG 2023-05-04 10:03:12 +00:00 committed by Gitee
commit a18dead885
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,9 @@ function asyncImportRoute(routes: AppRouteRecordRaw[] | undefined) {
const meta = item.meta || {}
meta.title = item.name
meta.icon = item.icon
meta.hideMenu = !item.visible
meta.orderNo = item.sort
meta.ignoreKeepAlive = !item.keepAlive
item.meta = meta
children && asyncImportRoute(children)
})