router.js 815 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. * @description router全局配置,如有必要可分文件抽离,其中asyncRoutes只有在intelligence模式下才会用到,pro版只支持remixIcon图标,具体配置请查看vip群文档
  3. */
  4. const List = [
  5. {
  6. path: '/',
  7. name: 'Root',
  8. component: 'Layout',
  9. redirect: '/index',
  10. meta: {
  11. title: '首页',
  12. icon: 'home-2-line',
  13. },
  14. children: [
  15. {
  16. path: 'index',
  17. name: 'Index',
  18. component: '@/views/index',
  19. meta: {
  20. title: '首页',
  21. icon: 'home-2-line',
  22. noClosable: true,
  23. },
  24. },
  25. ],
  26. },
  27. ]
  28. module.exports = [
  29. {
  30. url: '/router/getList',
  31. type: 'get',
  32. response() {
  33. return {
  34. code: 200,
  35. msg: 'success',
  36. data: { list: List },
  37. }
  38. },
  39. },
  40. ]