From d02ba57ffb93b34f54512db23a61db4f9b607a99 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期五, 27 九月 2024 16:02:40 +0800 Subject: [PATCH] 修复代码生成上级菜单显示问题 --- src/layout/components/Sidebar/SidebarItem.vue | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue index f2a913f..b92ace2 100644 --- a/src/layout/components/Sidebar/SidebarItem.vue +++ b/src/layout/components/Sidebar/SidebarItem.vue @@ -9,15 +9,15 @@ </app-link> </template> - <el-sub-menu v-else ref="subMenu" :index="resolvePath(item.path)" popper-append-to-body> + <el-sub-menu v-else ref="subMenu" :index="resolvePath(item.path)" teleported> <template v-if="item.meta" #title> <svg-icon :icon-class="item.meta && item.meta.icon" /> <span class="menu-title" :title="hasTitle(item.meta.title)">{{ item.meta.title }}</span> </template> <sidebar-item - v-for="child in item.children" - :key="child.path" + v-for="(child, index) in item.children" + :key="child.path + index" :is-nest="true" :item="child" :base-path="resolvePath(child.path)" -- Gitblit v1.9.3