From 02c0fe95de11fe9e692144a9a15b6d96bb991b66 Mon Sep 17 00:00:00 2001 From: lxl <lixuliang_hd@126.com> Date: 星期二, 08 十一月 2022 18:38:33 +0800 Subject: [PATCH] nav --- src/views/Home.vue | 41 ++++++++++++++++------------------------- 1 files changed, 16 insertions(+), 25 deletions(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index c072e13..be05f22 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,17 +1,13 @@ <template> <div class="home"> <el-container> - <el-container> - <el-aside> - <nav-menu></nav-menu> - </el-aside> - <el-main> - <!-- <synthesis class="showsynthesis" v-show="shwomMapview"></synthesis> --> - <router-view /> - </el-main> - </el-container> + <el-header> + <nav-menu></nav-menu> + </el-header> + <el-main> + <router-view /> + </el-main> </el-container> - <!-- <iframe src="http://localhost/LFWeb/test.html" width="100%" height="100%"></iframe> --> </div> </template> @@ -22,35 +18,30 @@ name: "Home", components: { navMenu, - }, data() { return { shwomMapview: true, }; }, - methods: { - - }, + methods: {}, }; </script> <style lang="less"> .home { height: 100vh; position: relative; - background-color: #3b4d6e; - .el-aside { - margin: 26px 0 0 27px; - width: 249px; - // background-color: #bfa; - } .el-container { height: 100%; - } - .el-main { - margin: 0px; - padding: 10px; - background: rgb(61, 76, 112); + .el-header { + padding: 0; + height: 160px !important; + } + .el-main { + margin: 0px; + padding: 10px; + background-color: rgb(53, 53, 57); + } } } </style> -- Gitblit v1.9.3