dashboard.ts 786 B

123456789101112131415161718192021222324252627282930313233343536
  1. import type { AppRouteModule } from '/@/router/types';
  2. import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
  3. export default {
  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. } as AppRouteModule;