mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-11-29 18:48:31 +08:00
fix: 修复次导航第一个导航无子级路由时不显示
This commit is contained in:
parent
45567dddbc
commit
7ba47879f7
@ -225,7 +225,6 @@ function keyEnter() {
|
||||
searchResultItemRef.value.find(item => Number.parseInt(item.dataset.index!) === actived.value)?.click()
|
||||
}
|
||||
}
|
||||
// FIXME 列表数据变更后,快捷键滚动失效
|
||||
function handleScroll() {
|
||||
if (searchResultRef.value) {
|
||||
const contentDom = searchResultRef.value.osInstance()!.elements().content
|
||||
|
@ -24,8 +24,11 @@ const enableSidebar = computed(() => {
|
||||
['side', 'head', 'single'].includes(settingsStore.settings.menu.menuMode)
|
||||
&& menuStore.sidebarMenus.length !== 0
|
||||
&& !(
|
||||
!menuStore.sidebarMenus[0].children
|
||||
|| menuStore.sidebarMenus[0]?.children.every(item => item.meta?.sidebar === false)
|
||||
menuStore.sidebarMenus.length === 1
|
||||
&& (
|
||||
!menuStore.sidebarMenus[0].children
|
||||
|| menuStore.sidebarMenus[0]?.children.every(item => item.meta?.sidebar === false)
|
||||
)
|
||||
)
|
||||
)
|
||||
})
|
||||
|
@ -20,8 +20,11 @@ const enableSubMenuCollapseButton = computed(() => {
|
||||
['side', 'head', 'single'].includes(settingsStore.settings.menu.menuMode)
|
||||
&& settingsStore.settings.menu.enableSubMenuCollapseButton
|
||||
&& !(
|
||||
!menuStore.sidebarMenus[0].children
|
||||
|| menuStore.sidebarMenus[0]?.children.every(item => item.meta?.sidebar === false)
|
||||
menuStore.sidebarMenus.length === 1
|
||||
&& (
|
||||
!menuStore.sidebarMenus[0].children
|
||||
|| menuStore.sidebarMenus[0]?.children.every(item => item.meta?.sidebar === false)
|
||||
)
|
||||
)
|
||||
)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user