multilevel.menu.example.ts 713 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import type { RouteRecordRaw } from 'vue-router'
  2. const Layout = () => import('@/layouts/index.vue')
  3. const routes: RouteRecordRaw = {
  4. path: '/example',
  5. component: Layout,
  6. redirect: '/example/index',
  7. name: 'Example',
  8. meta: {
  9. title: '演示',
  10. type: 0,
  11. },
  12. children: [
  13. {
  14. path: 'index',
  15. name: 'ExampleIndex',
  16. component: () => import('@/views/example/index.vue'),
  17. meta: {
  18. title: '演示页面',
  19. Type: 1,
  20. },
  21. },
  22. {
  23. path: 'ceshi',
  24. name: 'Exampleceshi',
  25. component: () => import('@/views/example/ceshi.vue'),
  26. meta: {
  27. title: '权限测试',
  28. Type: 1,
  29. },
  30. },
  31. ],
  32. }
  33. export default routes