mirror of
https://github.com/yangzongzhuan/RuoYi-Vue3.git
synced 2025-12-28 12:17:13 +00:00
优化代码
This commit is contained in:
@@ -63,7 +63,7 @@ const topMenus = computed(() => {
|
||||
routers.value.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