Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Mar 4, 2019
1 parent a589124 commit a97a5bd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/views/system/role.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,12 @@ export default {
created() {
this.fetchData(this.listQuery);
asyncRouterMap.filter((item) => {
const arr = [...asyncRouterMap]
arr.filter((item) => {
console.log(item)
if (item.children) {
const obj = item.children;
obj.foreach((k) => {
obj.forEach((k) => {
k.title = k.meta.title;
});
}
Expand All @@ -136,7 +137,7 @@ export default {
}
return true;
});
this.menu = asyncRouterMap;
this.menu = arr;
},
methods: {
handleSizeChange(val) {
Expand Down

0 comments on commit a97a5bd

Please sign in to comment.