From 9c385c412cdf6db77e643f32a4fbf50f281f07da Mon Sep 17 00:00:00 2001 From: ColorWhiteDeveloper <2632970487@qq.com> Date: 星期一, 19 九月 2022 11:25:49 +0800 Subject: [PATCH] 系统设置侧边栏路由搭建 --- src/views/layout/components/Main/index.vue | 23 ++++++++++++++++++++--- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/views/layout/components/Main/index.vue b/src/views/layout/components/Main/index.vue index a3453d7..26fbaa5 100644 --- a/src/views/layout/components/Main/index.vue +++ b/src/views/layout/components/Main/index.vue @@ -1,15 +1,32 @@ <template> <el-main> - <router-view></router-view> + <NavBar /> + <div class="content"> + <router-view></router-view> + <!-- 搴曢儴鍖哄煙 --> + <MyFooter/> + </div> </el-main> </template> <script> +import MyFooter from "../Footer" import NavBar from "../NavBar" export default { name: "Main", - components:{ + components: { + MyFooter, NavBar } }; -</script> \ No newline at end of file +</script> +<style lang="scss"> +.el-main { + min-width: 1024px; + padding: 0; + .content { + background-color: #f0f2f5; + padding: 20px 40px; + } +} +</style> -- Gitblit v1.8.0