1
0

dashboard.ts 999 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import type { AppRouteModule } from '/@/router/types';
  2. import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
  3. const dashboard: AppRouteModule = {
  4. layout: {
  5. path: '/dashboard',
  6. name: 'Dashboard',
  7. component: PAGE_LAYOUT_COMPONENT,
  8. redirect: '/dashboard/workbench',
  9. meta: {
  10. icon: 'ant-design:home-outlined',
  11. title: 'Dashboard',
  12. },
  13. },
  14. routes: [
  15. {
  16. path: '/welcome',
  17. name: 'Welcome',
  18. component: () => import('/@/views/dashboard/welcome/index.vue'),
  19. meta: {
  20. title: '首页',
  21. },
  22. },
  23. {
  24. path: '/workbench',
  25. name: 'Workbench',
  26. component: () => import('/@/views/dashboard/workbench/index.vue'),
  27. meta: {
  28. title: '工作台',
  29. affix: true,
  30. },
  31. },
  32. {
  33. path: '/analysis',
  34. name: 'Analysis',
  35. component: () => import('/@/views/dashboard/analysis/index.vue'),
  36. meta: {
  37. title: '分析页',
  38. },
  39. },
  40. ],
  41. };
  42. export default dashboard;