Commit be3bcc11 by moyaojun Committed by GitHub

fix(@vben/preferences): fix hidden header navigation bar causes the settings but…

…ton to not be displayed (#4271)

bug #4268
1 parent 88a7a9b1
...@@ -44,6 +44,13 @@ function usePreferences() { ...@@ -44,6 +44,13 @@ function usePreferences() {
); );
/** /**
* @zh_CN 是否显示顶栏
*/
const isShowHeaderNav = computed(() => {
return preferences.header.enable;
});
/**
* @zh_CN 是否全屏显示content,不需要侧边、底部、顶部、tab区域 * @zh_CN 是否全屏显示content,不需要侧边、底部、顶部、tab区域
*/ */
const isFullContent = computed( const isFullContent = computed(
...@@ -180,7 +187,11 @@ function usePreferences() { ...@@ -180,7 +187,11 @@ function usePreferences() {
} }
// 如果是全屏模式或者没有固定在顶部, // 如果是全屏模式或者没有固定在顶部,
const fixed = contentIsMaximize || isFullContent.value || isMobile.value; const fixed =
contentIsMaximize ||
isFullContent.value ||
isMobile.value ||
!isShowHeaderNav.value;
return { return {
fixed, fixed,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!