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,9 +5,17 @@ const flowChartRouter = {
name: "flowChart",
component: Layout,
redirect: "/flowChart/index",
meta: {
icon: "el-icon-set-up",
title: "message.hsflowChart",
showLink: true,
savedPosition: true,
rank: 1,
},
children: [
{
path: "/flowChart/index",
name: "flowChart",
component: () => import("/@/views/flow-chart/index.vue"),
meta: {
title: "message.hsflowChart",
@@ -16,12 +24,6 @@ const flowChartRouter = {
},
},
],
meta: {
icon: "el-icon-set-up",
title: "message.hsflowChart",
showLink: true,
savedPosition: true,
},
};
export default flowChartRouter;