增加menu可配置是否自动关闭功能 增加单页面刷新功能

This commit is contained in:
蒋吉兆
2021-01-24 17:01:43 +08:00
parent 3952d5ec14
commit f82acdb478
6 changed files with 217 additions and 115 deletions

View File

@@ -8,7 +8,6 @@ const formatRouter = (routes) => {
if ((!item.children || item.children.every(ch => ch.hidden)) && item.name != '404') {
routerList.push({ label: item.meta.title, value: item.name })
}
item.meta.hidden = item.hidden
if (item.children && item.children.length > 0) {
formatRouter(item.children)
}