Skip to content

Commit

Permalink
fix(@vben-core/menu-ui): fix horizontal layout top menu language swit…
Browse files Browse the repository at this point in the history
…ching issue(#4724) (#4777)

Co-authored-by: jackhoo_98 <jackhoo_98@foxmail.com>
  • Loading branch information
13982720426 and jackhoo_98 authored Oct 31, 2024
1 parent 06ba7cb commit f78cc31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@core/ui-kit/menu-ui/src/components/menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ const activePath = ref<MenuProvider['activePath']>(props.defaultActive);
const items = ref<MenuProvider['items']>({});
const subMenus = ref<MenuProvider['subMenus']>({});
const mouseInChild = ref(false);
const defaultSlots: VNodeArrayChildren = slots.default?.() ?? [];
const isMenuPopup = computed<MenuProvider['isMenuPopup']>(() => {
return (
Expand All @@ -73,6 +72,9 @@ const isMenuPopup = computed<MenuProvider['isMenuPopup']>(() => {
});
const getSlot = computed(() => {
// 更新插槽内容
const defaultSlots: VNodeArrayChildren = slots.default?.() ?? [];
const originalSlot = flattedChildren(defaultSlots) as VNodeArrayChildren;
const slotDefault =
sliceIndex.value === -1
Expand Down

0 comments on commit f78cc31

Please sign in to comment.