fix: route
parent
ed2aded29c
commit
c8ab143640
|
@ -51,6 +51,9 @@ function asyncImportRoute(routes: AppRouteRecordRaw[] | undefined) {
|
||||||
const meta = item.meta || {}
|
const meta = item.meta || {}
|
||||||
meta.title = item.name
|
meta.title = item.name
|
||||||
meta.icon = item.icon
|
meta.icon = item.icon
|
||||||
|
meta.hideMenu = !item.visible
|
||||||
|
meta.orderNo = item.sort
|
||||||
|
meta.ignoreKeepAlive = !item.keepAlive
|
||||||
item.meta = meta
|
item.meta = meta
|
||||||
children && asyncImportRoute(children)
|
children && asyncImportRoute(children)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue