routeConfig.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. export default [
  2. {
  3. path: '/user',
  4. component: '../layouts/UserLayout',
  5. routes: [
  6. {
  7. name: 'login',
  8. path: '/user/login',
  9. component: './user/login',
  10. },
  11. ],
  12. },
  13. {
  14. path: '/',
  15. component: '../layouts/SecurityLayout',
  16. routes: [
  17. // { path: '/', redirect: '/upload' },
  18. {
  19. path: '/',
  20. component: '../layouts/BasicLayout',
  21. routes: [
  22. {
  23. path: '/',
  24. redirect: '/upload',
  25. },
  26. // {
  27. // path: '/welcome',
  28. // name: '欢迎',
  29. // icon: 'smile',
  30. // component: './Welcome',
  31. // },
  32. {
  33. path: '/upload',
  34. name: '文件上传',
  35. icon: 'CloudUploadOutlined',
  36. component: './Upload/FileList/FileList'
  37. },
  38. {
  39. component: './404',
  40. },
  41. ],
  42. // path: '/upload',
  43. // name: '文件上传',
  44. // icon: 'CloudUploadOutlined',
  45. // component: './Upload/FileList/FileList'
  46. },
  47. {
  48. component: './404',
  49. },
  50. ],
  51. },
  52. {
  53. component: './404',
  54. },
  55. ]