about.ts 722 B

123456789101112131415161718192021222324252627282930313233
  1. import { RouteRecordRaw } from 'vue-router';
  2. import { Layout } from '@/router/constant';
  3. import { ProjectOutlined } from '@vicons/antd';
  4. import { renderIcon } from '@/utils/index';
  5. const routes: Array<RouteRecordRaw> = [
  6. {
  7. path: '/about',
  8. name: 'about',
  9. component: Layout,
  10. meta: {
  11. sort: 11,
  12. isRoot: true,
  13. activeMenu: 'about_index',
  14. alwaysShow: true,
  15. icon: renderIcon(ProjectOutlined),
  16. },
  17. children: [
  18. {
  19. path: 'index',
  20. name: `about_index`,
  21. meta: {
  22. title: '关于项目',
  23. activeMenu: 'about_index',
  24. },
  25. component: () => import('@/views/about/index.vue'),
  26. },
  27. ],
  28. },
  29. ];
  30. export default routes;