feat: 模拟后台返回不同角色路由生成动态路由

This commit is contained in:
xiaoxian521
2021-05-27 23:36:46 +08:00
parent b554356ba1
commit 07aff1fcfc
22 changed files with 297 additions and 92 deletions

View File

@@ -5,6 +5,12 @@ const homeRouter = {
name: "home",
component: Layout,
redirect: "/welcome",
meta: {
icon: "el-icon-s-home",
showLink: true,
savedPosition: false,
rank: 0,
},
children: [
{
path: "/welcome",
@@ -17,11 +23,6 @@ const homeRouter = {
},
},
],
meta: {
icon: "el-icon-s-home",
showLink: true,
savedPosition: false,
},
};
export default homeRouter;