From 0e7a59823263b99c6ae486b603c36f338817f03c Mon Sep 17 00:00:00 2001 From: xuyiming Date: Wed, 6 May 2020 17:15:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9C=8D=E5=8A=A1=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E4=BE=A7=E8=BE=B9=E5=AF=BC=E8=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/side-nav-bar.vue | 11 +++++------ src/pages/fwgl.vue | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/side-nav-bar.vue b/src/components/side-nav-bar.vue index 768a8d8..d66d854 100644 --- a/src/components/side-nav-bar.vue +++ b/src/components/side-nav-bar.vue @@ -9,14 +9,16 @@ @@ -39,9 +41,6 @@ export default { }, }, methods: { - navAction(nav) { - this.$router.push(nav.path); - }, titleAction() { if (this.titlePath) { this.$router.push(this.titlePath); diff --git a/src/pages/fwgl.vue b/src/pages/fwgl.vue index 4fe1800..2677bb2 100644 --- a/src/pages/fwgl.vue +++ b/src/pages/fwgl.vue @@ -75,7 +75,7 @@ export default { name: "云资源管理", path: "/fwgl/list/9/云资源管理", }, - ]; + ].filter((nav) => nav.level === this.userLevel); this.$router.push(this.navList[0].path); }, -- 2.26.0