diff --git a/src/layouts/default.vue b/src/layouts/default.vue
index c54d605..11015d0 100644
--- a/src/layouts/default.vue
+++ b/src/layouts/default.vue
@@ -1,7 +1,6 @@
(() => {
return [{ title: top.name }]
})
-/** 侧边栏 sticky 定位(有固定顶栏时往下让出顶栏高度)。 */
+/** 侧边栏 sticky 定位(顶栏固定时往下让出顶栏高度)。 */
const cssVars = computed(() => ({
'--ty-header-height': `${HEADER_HEIGHT}px`,
- '--ty-sidebar-top': app.hasHeader && app.headerFixed ? `${HEADER_HEIGHT}px` : '0px',
- '--ty-sidebar-height': app.hasHeader && app.headerFixed ? `calc(100vh - ${HEADER_HEIGHT}px)` : '100vh',
+ '--ty-sidebar-top': app.headerFixed ? `${HEADER_HEIGHT}px` : '0px',
+ '--ty-sidebar-height': app.headerFixed ? `calc(100vh - ${HEADER_HEIGHT}px)` : '100vh',
}))
/** 布局设置快照(传给设置面板)。 */
diff --git a/src/stores/modules/app.ts b/src/stores/modules/app.ts
index d91d559..f970225 100644
--- a/src/stores/modules/app.ts
+++ b/src/stores/modules/app.ts
@@ -22,9 +22,6 @@ export const useAppStore = defineStore(
const showFullscreen = ref(defaultLayout.showFullscreen)
const menuAccordion = ref(defaultLayout.menuAccordion)
- /** 是否有顶栏:horizontal / top 有,sidebar(左右)无。 */
- const hasHeader = computed(() => layout.value !== 'sidebar')
-
/** 是否渲染侧边栏:horizontal / sidebar 有,top 无。 */
const hasSidebar = computed(() => layout.value !== 'top')
@@ -44,7 +41,6 @@ export const useAppStore = defineStore(
showTabs,
showFullscreen,
menuAccordion,
- hasHeader,
hasSidebar,
hasMixbar,
}
diff --git a/stats.html b/stats.html
index 20cd71f..5c99c4e 100644
--- a/stats.html
+++ b/stats.html
@@ -4930,7 +4930,7 @@ var drawChart = (function (exports) {