menu.js 834 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. const routerConfig = [
  2. {
  3. "path": "/dashboard",
  4. "name": "dashboard",
  5. "icon": "dashboard",
  6. "children": [
  7. {
  8. "path": "/dashboard/home",
  9. "name": "analysis",
  10. },
  11. {
  12. "path": "/dashboard/test",
  13. "name": "monitor"
  14. },
  15. ]
  16. },
  17. {
  18. "path": "/user",
  19. "name": "dashboard",
  20. "icon": "dashboard",
  21. "children": [
  22. {
  23. "path": "/user/analysis",
  24. "name": "analysis",
  25. },
  26. {
  27. "path": "/user/monitor",
  28. "name": "monitor"
  29. },
  30. {
  31. "path": "/user/workplace",
  32. "name": "workplace"
  33. }
  34. ]
  35. },
  36. ]
  37. //获取菜单信息
  38. const getMenus = (req, res) => {
  39. res.send({
  40. status: 'OK',
  41. data: routerConfig,
  42. msg: ''
  43. });
  44. }
  45. const proxy = {
  46. 'GET /api/getMenus': getMenus
  47. }
  48. export default proxy