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) {