Skip to content

Commit

Permalink
[fix]{Role}: 修复一处角色管理Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Apr 6, 2019
1 parent d6db26f commit 9ccbc41
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/views/system/role.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,16 @@ export default {
created() {
this.fetchData(this.listQuery);
const arr = [...asyncRouterMap]
arr.filter((item) => {
const arr = asyncRouterMap.map((item) => {
if (item.children) {
const obj = item.children;
obj.forEach((k) => {
k.title = k.meta.title;
});
}
if (item.hidden) {
return false;
for (const row of obj) {
row.title = row.meta.title;
}
}
return true;
});
return item
}).filter(item => !item.hidden);
this.menu = arr;
},
methods: {
Expand Down

0 comments on commit 9ccbc41

Please sign in to comment.