fix(@vben/preferences): fix hidden header navigation bar causes the settings button to not be displayed (#4271)

bug #4268
pull/48/MERGE
moyaojun 2024-08-29 21:37:29 +08:00 committed by GitHub
parent 88a7a9b1ee
commit be3bcc1122
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 1 deletions

View File

@ -43,6 +43,13 @@ function usePreferences() {
isMobile.value ? 'sidebar-nav' : appPreferences.value.layout,
);
/**
* @zh_CN
*/
const isShowHeaderNav = computed(() => {
return preferences.header.enable;
});
/**
* @zh_CN contenttab
*/
@ -180,7 +187,11 @@ function usePreferences() {
}
// 如果是全屏模式或者没有固定在顶部,
const fixed = contentIsMaximize || isFullContent.value || isMobile.value;
const fixed =
contentIsMaximize ||
isFullContent.value ||
isMobile.value ||
!isShowHeaderNav.value;
return {
fixed,