forked from ruoyi/RuoYi-Vue
优化代码
This commit is contained in:
@@ -57,7 +57,7 @@ export default {
|
||||
this.routers.map((menu) => {
|
||||
if (menu.hidden !== true) {
|
||||
// 兼容顶部栏一级菜单内部跳转
|
||||
if (menu.path === "/") {
|
||||
if (menu.path === '/' && menu.children) {
|
||||
topMenus.push(menu.children[0]);
|
||||
} else {
|
||||
topMenus.push(menu);
|
||||
|
||||
Reference in New Issue
Block a user