Commit eeb91a4f authored by 刘殿昕's avatar 刘殿昕

个人中心菜单key

parent 863132ab
...@@ -49,6 +49,10 @@ export default { ...@@ -49,6 +49,10 @@ export default {
let user_index = arr.findIndex(item => item.visit_url == "/user"); let user_index = arr.findIndex(item => item.visit_url == "/user");
if (user_index != -1) { if (user_index != -1) {
this.navList = arr[user_index].Child; this.navList = arr[user_index].Child;
this.navList.forEach(item => {
item.name = item.menu_name;
item.path = item.visit_url;
});
} }
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment