diff --git a/packages/fes-plugin-layout/src/runtime/views/Menu.vue b/packages/fes-plugin-layout/src/runtime/views/Menu.vue index 0e4ba224..66723fea 100644 --- a/packages/fes-plugin-layout/src/runtime/views/Menu.vue +++ b/packages/fes-plugin-layout/src/runtime/views/Menu.vue @@ -105,7 +105,7 @@ export default { return; } const activeMenu = menuArray.value[index]; - const arr = [activeMenu]; + const arr = activeMenu.children?.length ? [activeMenu] : []; while (index > 0) { index = index - 1; const lastMenu = menuArray.value[index];