fix: 移动端禁用混合布局菜单拆分 (#7949)

master^2
过冬 2026-05-23 04:21:19 +08:00 committed by GitHub
parent cd86de54e1
commit e98f0b7558
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -19,12 +19,13 @@ function useMixedMenu() {
const mixExtraMenus = ref<MenuRecordRaw[]>([]);
/** 记录当前顶级菜单下哪个子菜单最后激活 */
const defaultSubMap = new Map<string, string>();
const { isMixedNav, isHeaderMixedNav } = usePreferences();
const { isMixedNav, isHeaderMixedNav, isMobile } = usePreferences();
const needSplit = computed(
() =>
(preferences.navigation.split && isMixedNav.value) ||
isHeaderMixedNav.value,
!isMobile.value &&
((preferences.navigation.split && isMixedNav.value) ||
isHeaderMixedNav.value),
);
const sidebarVisible = computed(() => {