mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-08 23:42:27 +08:00
47 lines
988 B
TypeScript
47 lines
988 B
TypeScript
import { defineMock } from '@alova/mock';
|
|
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 defineMock({
|
|
'/api/menus': () => resultSuccess(menusList),
|
|
});
|