!11 fix: route

Merge pull request !11 from xingyu/master_old
pull/12/head
xingyu 2023-05-06 01:12:57 +00:00 committed by Gitee
commit e7571ea66c
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)
})