【新增】菜单新增是否缓存、是否隐藏的字段

This commit is contained in:
YunaiV
2022-04-21 01:47:34 +08:00
parent b5821b4bef
commit c703628940
7 changed files with 6209 additions and 418 deletions

View File

@ -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) {