menus.ts 1.1 KB

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