feat: fixed the regression of changing Menu to MenuUI

This commit is contained in:
Harold Zhang
2026-06-04 11:46:53 +08:00
parent 790e114d41
commit 6b7cb7b1fc
5 changed files with 8 additions and 8 deletions

View File

@@ -37,7 +37,7 @@ const menuIcon = computed(() =>
const isHttp = computed(() => isHttpUrl(item.parentPaths.at(-1)));
const isTopLevelMenuItem = computed(
() => parentMenu.value?.type.name === 'Menu',
() => parentMenu.value?.type.name === 'MenuUI',
);
const collapseShowTitle = computed(

View File

@@ -54,7 +54,7 @@ const opened = computed(() => {
return rootMenu?.openedMenus.includes(props.path);
});
const isTopLevelMenuSubmenu = computed(
() => parentMenu.value?.type.name === 'Menu',
() => parentMenu.value?.type.name === 'MenuUI',
);
const mode = computed(() => rootMenu?.props.mode ?? 'vertical');
const rounded = computed(() => rootMenu?.props.rounded);