Skip to content

Commit e87b72f

Browse files
committed
修复次导航收起时页面展示错误
1 parent 3c09401 commit e87b72f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/layouts/index.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ const isMainSidebarHide = computed(() => {
3535
3636
// 侧边栏次导航是否隐藏
3737
const isSubSidebarHide = computed(() => {
38-
return (settingsStore.settings.menu.subMenuCollapse && settingsStore.mode !== 'mobile')
39-
|| menuStore.sidebarMenus.every(item => item.meta?.menu === false)
38+
return menuStore.sidebarMenus.every(item => item.meta?.menu === false)
4039
})
4140
4241
// 标签栏是否隐藏

src/types/auto-imports.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ declare global {
8989
// for type re-export
9090
declare global {
9191
// @ts-ignore
92-
export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
92+
export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
9393
import('vue')
9494
}

0 commit comments

Comments
 (0)