12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import { delay } from 'roadhog-api-doc';
- const routerConfig = [
- {
- "path": "/dashboard",
- "name": "dashboard",
- "icon": "dashboard",
- "children": [
- {
- "path": "/dashboard/home",
- "name": "analysis",
- },
- {
- "path": "/dashboard/test",
- "name": "monitor"
- },
- ]
- },
- {
- "path": "/user",
- "name": "dashboard",
- "icon": "dashboard",
- "children": [
- {
- "path": "/user/analysis",
- "name": "analysis",
- },
- {
- "path": "/user/monitor",
- "name": "monitor"
- },
- {
- "path": "/user/workplace",
- "name": "workplace"
- }
- ]
- },
- ]
- //获取菜单信息
- const getMenus = (req, res) => {
- res.send({
- status: 'OK',
- data: routerConfig,
- msg: ''
- });
- }
- const proxy = {
- 'GET /api/getMenus': getMenus
- }
- export default delay(proxy, 2000);
|