You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.0 KiB
52 lines
1.0 KiB
import { resultSuccess } from '../_util';
|
|
|
|
const menusList = [
|
|
{
|
|
path: '/dashboard',
|
|
name: 'Dashboard',
|
|
component: 'LAYOUT',
|
|
redirect: '/dashboard/console',
|
|
meta: {
|
|
icon: 'DashboardOutlined',
|
|
title: 'Dashboard',
|
|
},
|
|
children: [
|
|
{
|
|
path: 'console',
|
|
name: 'dashboard_console',
|
|
component: '/dashboard/console/console',
|
|
meta: {
|
|
title: '主控台',
|
|
},
|
|
},
|
|
{
|
|
path: 'monitor',
|
|
name: 'dashboard_monitor',
|
|
component: '/dashboard/monitor/monitor',
|
|
meta: {
|
|
title: '监控页',
|
|
},
|
|
},
|
|
{
|
|
path: 'workplace',
|
|
name: 'dashboard_workplace',
|
|
component: '/dashboard/workplace/workplace',
|
|
meta: {
|
|
hidden: true,
|
|
title: '工作台',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
export default [
|
|
{
|
|
url: '/api/menus',
|
|
timeout: 1000,
|
|
method: 'get',
|
|
response: () => {
|
|
return resultSuccess(menusList);
|
|
},
|
|
},
|
|
];
|
|
|