fix: route

pull/10/head
yangjiang 2023-05-04 17:44:38 +08:00
parent ed2aded29c
commit c8ab143640
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)
})