test.ts 605 B

1234567891011121314151617181920212223242526
  1. import type { AppRouteModule } from '/@/router/types';
  2. import { LAYOUT } from '/@/router/constant';
  3. import { t } from '/@/hooks/web/useI18n';
  4. const test: AppRouteModule = {
  5. path: '/test',
  6. name: 'TestDemo',
  7. component: LAYOUT,
  8. redirect: '/table/basic',
  9. meta: {
  10. icon: 'ant-design:table-outlined',
  11. title: t('routes.table.test'),
  12. },
  13. children: [
  14. {
  15. path: 'basic',
  16. name: 'testBasic',
  17. component: () => import('/@/views/test/index.vue'),
  18. meta: {
  19. title: t('routes.table.toggletest'),
  20. icon: 'bx:bx-home',
  21. },
  22. },
  23. ],
  24. };
  25. export default test;