mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-25 08:25:07 +08:00
【新增】菜单新增是否缓存、是否隐藏的字段
This commit is contained in:
@ -53,8 +53,10 @@ function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) {
|
||||
// 处理 meta 属性
|
||||
route.meta = {
|
||||
title: route.name,
|
||||
icon: route.icon
|
||||
icon: route.icon,
|
||||
noCache: !route.keepAlive,
|
||||
}
|
||||
route.hidden = !route.visible
|
||||
// 处理 component 属性
|
||||
if (route.children) { // 父节点
|
||||
if (route.parentId === 0) {
|
||||
|
Reference in New Issue
Block a user