src/views/layout/index.vue
@@ -2,7 +2,7 @@ <el-container id="body-wrapper"> <!-- 侧边导航栏 --> <Menu /> <el-container> <el-container class="content"> <!-- 头部 --> <Header /> <!-- 内容区域 --> @@ -35,13 +35,14 @@ margin-top: 60px; } .my-el-container { .content{ display: flex; flex-direction: column; height: 100%; } .el-main { background-color: #f0f2f5; background-color: #fff; color: #333; text-align: center; line-height: 160px;