From e2ffe9683ef007a45afbcdd897985d64cdcc7391 Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期四, 24 十一月 2022 11:26:31 +0800
Subject: [PATCH] 修改
---
src/views/layout/components/Main/index.vue | 36 +++++++++++++++++++-----------------
1 files changed, 19 insertions(+), 17 deletions(-)
diff --git a/src/views/layout/components/Main/index.vue b/src/views/layout/components/Main/index.vue
index 268880c..5ff6659 100644
--- a/src/views/layout/components/Main/index.vue
+++ b/src/views/layout/components/Main/index.vue
@@ -87,84 +87,84 @@
link:'/operate/management/myIndex',
},
{
- id:12,
+ id:13,
label:'鎴戠殑寰呭姙',
link:'/operate/myWait',
},
{
- id:12,
+ id:14,
label:'妗堝嵎鏌ヨ',
link:'/operate/viewEvent',
},
{
- id:12,
+ id:15,
label:'杞﹁締绠$悊',
link:'/operate/car/carIndex',
},
{
- id:12,
+ id:16,
label:'鍥剧墖绠$悊',
link:'/operate/images',
},
{
- id:12,
+ id:17,
label:'瑙嗛绠$悊',
link:'/operate/videoControl',
},
{
- id:12,
+ id:18,
label:'娑堟伅绠$悊',
link:'/operate/message/messageIndex',
},
{
- id:12,
+ id:19,
label:'鐭俊绠$悊',
link:'/operate/sms/smsIndex',
},
{
- id:12,
+ id:20,
label:'鏃ュ織绠$悊',
link:'/operate/log',
},
]
},
{
- id:1,
+ id:21,
title:'瑙嗛宸℃煡',
children:[
{
- id:2,
+ id:22,
label:'瑙嗛宸℃煡',
link:'/video',
},
]
},
{
- id:1,
+ id:23,
title:'鏅鸿兘宸℃煡',
children:[
{
- id:2,
+ id:24,
label:'棰勮鐮斿垽',
link:'/studyJudge',
},
{
- id:3,
+ id:25,
label:'杩濊妫�绱�',
link:'/illegalSearch',
},
{
- id:4,
+ id:26,
label:'瓒嬪娍鍒嗘瀽',
link:'/trendAnalysis',
},
{
- id:5,
+ id:27,
label:'杩濈珷缁熻',
link:'/trendAnalysis',
},
{
- id:6,
+ id:28,
label:'杩濇硶缁熻',
link:'/typeStatistics',
},
@@ -178,10 +178,12 @@
newPath === '/home' ? this.navFlag = true : this.navFlag = false
}
},
+ created(){
+ this.$route.path === '/home' ? this.navFlag = true : this.navFlag = false
+ },
methods:{
handleJump(url){
const baseURL = '/home'
- console.log(url)
// 璺敱璺宠浆
this.$router.push({path:baseURL+url})
}
--
Gitblit v1.8.0