From 3122021aeca05d43abf79189b4c5ac03fdf163b5 Mon Sep 17 00:00:00 2001 From: kevin jiang Date: Wed, 29 Apr 2020 22:56:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E7=AE=A1=E7=90=86-=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E7=AE=A1=E7=90=86=EF=BC=8C=E7=82=B9=E5=87=BB=E5=8F=B3?= =?UTF-8?q?=E4=BE=A7=E6=95=B0=E5=AD=97=E8=B0=83=E6=95=B4=E5=88=B0=E8=B4=A6?= =?UTF-8?q?=E6=88=B7=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=EF=BC=8C=E5=B7=A6?= =?UTF-8?q?=E4=BE=A7=E5=BA=94=E9=80=89=E4=B8=AD=E8=B4=A6=E6=88=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E8=80=8C=E4=B8=8D=E6=98=AF=E8=A7=92=E8=89=B2=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E4=BF=AE=E6=94=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Home.vue | 11 +++++++---- src/pages/user/RoleManager.vue | 2 ++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/pages/Home.vue b/src/pages/Home.vue index 5167647..5cdaff5 100644 --- a/src/pages/Home.vue +++ b/src/pages/Home.vue @@ -280,12 +280,15 @@ //账户管理页面回调方法 callBack() { let that = this; + debugger this.selectedMenu = "设置管理"; this.selectedSubMenu = "账户管理"; - this.selectedItemName = this.onePermissionList[0].subMenuList[0].id; - this.$nextTick(() => { - that.$refs.menu.updateActiveName(); - }) + this.selectedItemName = this.onePermissionList[2].subMenuList[0].id; + + // this.$router.push({path: '/account/manager',query:item}); + // this.$nextTick(() => { + // that.$refs.menu.updateActiveName(); + // }) }, setHeader(data){ let that = this; diff --git a/src/pages/user/RoleManager.vue b/src/pages/user/RoleManager.vue index 8b29100..89cc111 100644 --- a/src/pages/user/RoleManager.vue +++ b/src/pages/user/RoleManager.vue @@ -450,6 +450,8 @@ //点击角色数字跳转到账号管理页面 goToAccManagerPage: function (item) { this.$router.push({path: '/account/manager',query:item}); + // 回调首页更新菜单栏选择 + this.bus.$emit("callBack"); }, //选中角色 selectRole: function (id) {