menus.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import { resultSuccess } from '../_util';
  2. const menusList = [
  3. {
  4. path: '/dashboard',
  5. name: 'Dashboard',
  6. component: 'LAYOUT',
  7. redirect: '/dashboard/console',
  8. meta: {
  9. icon: 'DashboardOutlined',
  10. title: 'Dashboard',
  11. },
  12. children: [
  13. {
  14. path: 'console',
  15. name: 'dashboard_console',
  16. component: '/dashboard/console/console',
  17. meta: {
  18. title: '主控台',
  19. },
  20. },
  21. {
  22. path: 'monitor',
  23. name: 'dashboard_monitor',
  24. component: '/dashboard/monitor/monitor',
  25. meta: {
  26. title: '监控页',
  27. },
  28. },
  29. {
  30. path: 'workplace',
  31. name: 'dashboard_workplace',
  32. component: '/dashboard/workplace/workplace',
  33. meta: {
  34. hidden: true,
  35. title: '工作台',
  36. },
  37. },
  38. ],
  39. },
  40. ];
  41. export default [
  42. {
  43. url: '/api/menus',
  44. timeout: 1000,
  45. method: 'get',
  46. response: () => {
  47. return resultSuccess(menusList);
  48. },
  49. },
  50. ];