Browse Source

布局容器高度调整

tongshangming 5 months ago
parent
commit
1e0bbca50e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/layouts/BasicLayout.vue

+ 3 - 1
src/layouts/BasicLayout.vue

@@ -19,7 +19,9 @@ const themeStore = useThemeStore()
     <el-header v-if="themeStore.logoInHeader">
       <global-header />
     </el-header>
-    <el-container>
+    <el-container
+      :style="{ height: themeStore.logoInHeader ? 'calc(100% - var(--el-menu-horizontal-height))' : '100%' }"
+    >
       <el-aside>
         <global-aside />
       </el-aside>