Fixes bug 动态路由配置重构

This commit is contained in:
xiaoma
2021-08-10 17:16:58 +08:00
parent 737f967aab
commit 9c512002d2
23 changed files with 179 additions and 98 deletions

View File

@@ -4,7 +4,7 @@ const menusList = [
{
path: '/dashboard',
name: 'Dashboard',
component: 'Layout',
component: 'LAYOUT',
redirect: '/dashboard/console',
meta: {
icon: 'DashboardOutlined',
@@ -14,7 +14,7 @@ const menusList = [
{
path: 'console',
name: 'dashboard_console',
component: 'DashboardConsole',
component: '/dashboard/console/console',
meta: {
title: '主控台',
},
@@ -22,7 +22,7 @@ const menusList = [
{
path: 'monitor',
name: 'dashboard_monitor',
component: 'DashboardMonitor',
component: '/dashboard/monitor/monitor',
meta: {
title: '监控页',
},
@@ -30,7 +30,7 @@ const menusList = [
{
path: 'workplace',
name: 'dashboard_workplace',
component: 'DashboardWorkplace',
component: '/dashboard/workplace/workplace',
meta: {
hidden: true,
title: '工作台',

View File

@@ -13,25 +13,25 @@ const adminInfo = {
desc: 'manager',
password: Random.string('upper', 4, 16),
token,
roles: [
permissions: [
{
roleName: '主控台',
label: '主控台',
value: 'dashboard_console',
},
{
roleName: '监控页',
label: '监控页',
value: 'dashboard_monitor',
},
{
roleName: '工作台',
label: '工作台',
value: 'dashboard_workplace',
},
{
roleName: '基础列表',
label: '基础列表',
value: 'basic_list',
},
{
roleName: '基础列表删除',
label: '基础列表删除',
value: 'basic_list_delete',
},
],