config.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. import ConfigLabel from '../pages/config/ConfigLabel';
  2. import CommonConfig from '../pages/config/CommonConfig';
  3. export default {
  4. menus: [
  5. // 菜单相关路由
  6. { key: '/app/dashboard/index', title: '首页', icon: 'mobile', component: 'Dashboard' },
  7. {
  8. key: '/app/config', title: '配置中心', icon: 'mobile',
  9. subs: [
  10. { key: '/app/config/label', title: '属性标签', component: ConfigLabel },
  11. { key: '/app/config/properties', title: '微服务配置', component: 'SystemProperties' },
  12. { key: '/app/config/common', title: '通用配置', component: CommonConfig },
  13. ],
  14. },
  15. {
  16. key: '/app/ui',
  17. title: 'UI',
  18. icon: 'scan',
  19. subs: [
  20. { key: '/app/ui/buttons', title: '按钮', component: 'Buttons' },
  21. { key: '/app/ui/icons', title: '图标', component: 'Icons' },
  22. { key: '/app/ui/spins', title: '加载中', component: 'Spins' },
  23. { key: '/app/ui/modals', title: '对话框', component: 'Modals' },
  24. { key: '/app/ui/notifications', title: '通知提醒框', component: 'Notifications' },
  25. { key: '/app/ui/tabs', title: '标签页', component: 'Tabs' },
  26. { key: '/app/ui/banners', title: '轮播图', component: 'Banners' },
  27. { key: '/app/ui/wysiwyg', title: '富文本', component: 'WysiwygBundle' },
  28. { key: '/app/ui/drags', title: '拖拽', component: 'Drags' },
  29. { key: '/app/ui/gallery', title: '画廊', component: 'Gallery' },
  30. { key: '/app/ui/map', title: '地图', component: 'MapUi' },
  31. ],
  32. },
  33. {
  34. key: '/app/animation',
  35. title: '动画',
  36. icon: 'rocket',
  37. subs: [
  38. {
  39. key: '/app/animation/basicAnimations',
  40. title: '基础动画',
  41. component: 'BasicAnimations',
  42. },
  43. {
  44. key: '/app/animation/exampleAnimations',
  45. title: '动画案例',
  46. component: 'ExampleAnimations',
  47. },
  48. ],
  49. },
  50. {
  51. key: '/app/table',
  52. title: '表格',
  53. icon: 'copy',
  54. subs: [
  55. { key: '/app/table/basicTable', title: '基础表格', component: 'BasicTable' },
  56. { key: '/app/table/advancedTable', title: '高级表格', component: 'AdvancedTable' },
  57. {
  58. key: '/app/table/asynchronousTable',
  59. title: '异步表格',
  60. component: 'AsynchronousTable',
  61. },
  62. ],
  63. },
  64. {
  65. key: '/app/form',
  66. title: '表单',
  67. icon: 'edit',
  68. subs: [{ key: '/app/form/basicForm', title: '基础表单', component: 'BasicForm' }],
  69. },
  70. {
  71. key: '/app/chart',
  72. title: '图表',
  73. icon: 'area-chart',
  74. subs: [
  75. { key: '/app/chart/echarts', title: 'echarts', component: 'Echarts' },
  76. { key: '/app/chart/recharts', title: 'recharts', component: 'Recharts' },
  77. ],
  78. },
  79. {
  80. key: '/subs4',
  81. title: '页面',
  82. icon: 'switcher',
  83. subs: [{ key: '/login', title: '登录' }, { key: '/404', title: '404' }],
  84. },
  85. {
  86. key: '/app/auth',
  87. title: '权限管理',
  88. icon: 'safety',
  89. subs: [
  90. { key: '/app/auth/basic', title: '基础演示', component: 'AuthBasic' },
  91. {
  92. key: '/app/auth/routerEnter',
  93. title: '路由拦截',
  94. component: 'RouterEnter',
  95. auth: 'auth/testPage',
  96. },
  97. ],
  98. },
  99. {
  100. key: '/app/cssModule',
  101. title: 'cssModule',
  102. icon: 'star',
  103. component: 'Cssmodule',
  104. },
  105. {
  106. key: '/app/extension',
  107. title: '功能扩展',
  108. icon: 'bars',
  109. subs: [
  110. {
  111. key: '/app/extension/queryParams',
  112. title: '问号形式参数',
  113. component: 'QueryParams',
  114. query: '?param1=1&param2=2',
  115. },
  116. ],
  117. },
  118. ],
  119. others: [], // 非菜单相关路由
  120. };