From 70f7331e5029ffb8d229f1b37fd81f73321dab89 Mon Sep 17 00:00:00 2001 From: “dzb” <2632970487@qq.com> Date: 星期四, 03 十一月 2022 10:58:47 +0800 Subject: [PATCH] 违规检索 --- src/views/layout/components/Main/index.vue | 36 +++++++++++++++++++++++++++++++++--- 1 files changed, 33 insertions(+), 3 deletions(-) diff --git a/src/views/layout/components/Main/index.vue b/src/views/layout/components/Main/index.vue index a3453d7..7f892c0 100644 --- a/src/views/layout/components/Main/index.vue +++ b/src/views/layout/components/Main/index.vue @@ -1,15 +1,45 @@ <template> <el-main> - <router-view></router-view> + <!-- <NavBar /> --> + <div class="content"> + <!-- 椤甸潰瀵艰埅鍖哄煙 --> + <div class="page-nav" v-if="navFlag"> + </div> + <router-view v-else></router-view> + <!-- 搴曢儴鍖哄煙 --> + <!-- <MyFooter/> --> + </div> </el-main> </template> <script> +// import MyFooter from "../Footer" import NavBar from "../NavBar" export default { name: "Main", - components:{ + components: { + // MyFooter, NavBar + }, + data() { + return { + navFlag:true + } + }, + watch:{ + '$route.path'(newPath,oldPath){ + newPath === '/home' ? this.navFlag = true : this.navFlag = false + } } }; -</script> \ No newline at end of file +</script> +<style lang="scss"> +.el-main { + min-width: 1024px; + padding: 0; + .content { + padding: 11px; + height: 100%; + } +} +</style> -- Gitblit v1.8.0