!10 fix: route

Merge pull request !10 from YANGJIANG/fix-route
pull/11/head
xingyu 2023-05-04 10:08:11 +00:00 committed by Gitee
commit 14a82d0616
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)
})