We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88a7a9b commit be3bcc1Copy full SHA for be3bcc1
packages/@core/preferences/src/use-preferences.ts
@@ -43,6 +43,13 @@ function usePreferences() {
43
isMobile.value ? 'sidebar-nav' : appPreferences.value.layout,
44
);
45
46
+ /**
47
+ * @zh_CN 是否显示顶栏
48
+ */
49
+ const isShowHeaderNav = computed(() => {
50
+ return preferences.header.enable;
51
+ });
52
+
53
/**
54
* @zh_CN 是否全屏显示content,不需要侧边、底部、顶部、tab区域
55
*/
@@ -180,7 +187,11 @@ function usePreferences() {
180
187
}
181
188
182
189
// 如果是全屏模式或者没有固定在顶部,
183
- const fixed = contentIsMaximize || isFullContent.value || isMobile.value;
190
+ const fixed =
191
+ contentIsMaximize ||
192
+ isFullContent.value ||
193
+ isMobile.value ||
194
+ !isShowHeaderNav.value;
184
195
185
196
return {
186
197
fixed,
0 commit comments