mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-10 16:32:25 +08:00
54 lines
1.3 KiB
TypeScript
54 lines
1.3 KiB
TypeScript
import { MockMethod } from 'vite-plugin-mock'
|
|
import { resultSuccess, getRequestToken } 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: 'DashboardConsole',
|
|
meta: {
|
|
title: '主控台',
|
|
}
|
|
},
|
|
{
|
|
path: 'monitor',
|
|
name: 'dashboard_monitor',
|
|
component: 'DashboardMonitor',
|
|
meta: {
|
|
title: '监控页',
|
|
}
|
|
},
|
|
{
|
|
path: 'workplace',
|
|
name: 'dashboard_workplace',
|
|
component: 'DashboardWorkplace',
|
|
meta: {
|
|
hidden: true,
|
|
title: '工作台',
|
|
}
|
|
},
|
|
],
|
|
}
|
|
]
|
|
|
|
export default [
|
|
{
|
|
url: '/api/menus',
|
|
timeout: 1000,
|
|
method: 'get',
|
|
response: () => {
|
|
return resultSuccess(menusList);
|
|
},
|
|
}
|
|
]
|