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 |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/src/views/layout/components/Main/index.vue b/src/views/layout/components/Main/index.vue
index 0e738f8..7f892c0 100644
--- a/src/views/layout/components/Main/index.vue
+++ b/src/views/layout/components/Main/index.vue
@@ -2,7 +2,10 @@
   <el-main>
     <!-- <NavBar /> -->
     <div class="content">
-      <router-view></router-view>
+      <!-- 椤甸潰瀵艰埅鍖哄煙 -->
+      <div class="page-nav" v-if="navFlag">
+      </div>
+      <router-view v-else></router-view>
       <!-- 搴曢儴鍖哄煙 -->
       <!-- <MyFooter/> -->
     </div>
@@ -17,6 +20,16 @@
   components: {
     // MyFooter,
     NavBar
+  },
+  data() {
+    return {
+      navFlag:true
+    }
+  },
+  watch:{
+    '$route.path'(newPath,oldPath){
+      newPath === '/home' ? this.navFlag = true : this.navFlag = false
+    }
   }
 };
 </script>

--
Gitblit v1.8.0