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.
 

98 lines
3.6 KiB

import { MockMethod } from 'vite-plugin-mock'
export default [
{
url: '/api/v1/menus',
method: 'get',
response: () => {
return {
code: 200,
message: 'Success',
data: [
{
id:1,
path: '/welcome',
name: '欢迎1111111111111',
icon: 'ApplicationMenu',
component: './pages/dashboard',
type: 1,
order: 1,
},
{
id:2,
path: '/admin',
name: '系统管理',
icon: 'SettingTwo',
access: 'canAdmin',
type: 1,
order: 2,
children: [
{
id:3,
path: '/admin/menus',
name: '导航管理',
icon: 'AllApplication',
component: './pages/system/menus',
type: 1,
},
{
id:4,
path: '/admin/users',
name: '用户管理',
icon: 'PeoplesTwo',
component: './pages/system/users',
type: 1,
},
{
id:5,
path: '/admin/departments',
name: '部门管理',
icon: 'Browser',
component: './pages/system/departments',
type: 1,
},
{
id:6,
path: '/admin/roles',
name: '角色管理',
icon: 'Permissions',
component: './pages/system/roles',
type: 1,
},
],
},
{
id:7,
name: '列表页',
icon: 'ListView',
path: '/list',
type: 1,
children: [
{
id:8,
path: '/list/index',
name: '列表页面',
component: './pages/list/list',
type: 1,
},
{
id:9,
path: '/list/tree',
name: '树形列表页面',
component: './pages/list/tree',
type: 1,
},
],
},
{
id:10,
path: 'https://ant.design',
name: 'Ant Design 官网外链',
type: 3,
},
]
}
}
}
] as MockMethod[]