fix(@vben/preferences): fix hidden header navigation bar causes the settings button to not be displayed (#4271)
bug #4268pull/48/MERGE
parent
88a7a9b1ee
commit
be3bcc1122
|
@ -43,6 +43,13 @@ function usePreferences() {
|
|||
isMobile.value ? 'sidebar-nav' : appPreferences.value.layout,
|
||||
);
|
||||
|
||||
/**
|
||||
* @zh_CN 是否显示顶栏
|
||||
*/
|
||||
const isShowHeaderNav = computed(() => {
|
||||
return preferences.header.enable;
|
||||
});
|
||||
|
||||
/**
|
||||
* @zh_CN 是否全屏显示content,不需要侧边、底部、顶部、tab区域
|
||||
*/
|
||||
|
@ -180,7 +187,11 @@ function usePreferences() {
|
|||
}
|
||||
|
||||
// 如果是全屏模式或者没有固定在顶部,
|
||||
const fixed = contentIsMaximize || isFullContent.value || isMobile.value;
|
||||
const fixed =
|
||||
contentIsMaximize ||
|
||||
isFullContent.value ||
|
||||
isMobile.value ||
|
||||
!isShowHeaderNav.value;
|
||||
|
||||
return {
|
||||
fixed,
|
||||
|
|
Loading…
Reference in New Issue