fix: 移动端禁用混合布局菜单拆分 (#7949)
parent
cd86de54e1
commit
e98f0b7558
|
|
@ -19,12 +19,13 @@ function useMixedMenu() {
|
||||||
const mixExtraMenus = ref<MenuRecordRaw[]>([]);
|
const mixExtraMenus = ref<MenuRecordRaw[]>([]);
|
||||||
/** 记录当前顶级菜单下哪个子菜单最后激活 */
|
/** 记录当前顶级菜单下哪个子菜单最后激活 */
|
||||||
const defaultSubMap = new Map<string, string>();
|
const defaultSubMap = new Map<string, string>();
|
||||||
const { isMixedNav, isHeaderMixedNav } = usePreferences();
|
const { isMixedNav, isHeaderMixedNav, isMobile } = usePreferences();
|
||||||
|
|
||||||
const needSplit = computed(
|
const needSplit = computed(
|
||||||
() =>
|
() =>
|
||||||
(preferences.navigation.split && isMixedNav.value) ||
|
!isMobile.value &&
|
||||||
isHeaderMixedNav.value,
|
((preferences.navigation.split && isMixedNav.value) ||
|
||||||
|
isHeaderMixedNav.value),
|
||||||
);
|
);
|
||||||
|
|
||||||
const sidebarVisible = computed(() => {
|
const sidebarVisible = computed(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue