mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
feat: 模拟后台返回不同角色路由生成动态路由
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user