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 errorRouter = {
name: "error",
component: Layout,
redirect: "/error/401",
meta: {
icon: "el-icon-position",
title: "message.hserror",
showLink: true,
savedPosition: true,
rank: 7,
},
children: [
{
path: "/error/401",
name: "401",
component: () => import("/@/views/error/401.vue"),
meta: {
title: "message.hsfourZeroOne",
@@ -17,6 +25,7 @@ const errorRouter = {
},
{
path: "/error/404",
name: "404",
component: () => import("/@/views/error/404.vue"),
meta: {
title: "message.hsfourZeroFour",
@@ -25,12 +34,6 @@ const errorRouter = {
},
},
],
meta: {
icon: "el-icon-position",
title: "message.hserror",
showLink: true,
savedPosition: true,
},
};
export default errorRouter;