constantRoutes.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. const Layout = () => import("@/layout/index.vue")
  2. export const staticRoutes = [
  3. {
  4. path: "/notfound",
  5. name: "notfound",
  6. hidden: true,
  7. component: () => import("@/views/404.vue")
  8. },
  9. {
  10. path: "/redirect",
  11. component: Layout,
  12. hidden: true,
  13. children: [{
  14. path: "/redirect/:path(.*)",
  15. component: () => import("@/views/redirect/index.vue")
  16. }]
  17. },
  18. {
  19. path: "/login",
  20. name: "login",
  21. hidden: true,
  22. component: () => import("@/views/login/index.vue")
  23. },
  24. {
  25. path: "/noPermission",
  26. name: "noPermission",
  27. hidden: true,
  28. component: () => import("@/views/error/noPermission.vue")
  29. },
  30. // {
  31. // path: "/yh",
  32. // name: "yhlogin",
  33. // hidden: true,
  34. // component: () => import("@/otherLogin/bx.vue"),
  35. // },
  36. // {
  37. // path: "/ssoyh",
  38. // name: "ssoyh",
  39. // hidden: true,
  40. // component: () => import("@/otherLogin/ssoSgzl.vue"),
  41. // },
  42. {
  43. path: "",
  44. component: Layout,
  45. redirect: "/index",
  46. alwaysShow: false,
  47. children: [
  48. {
  49. path: "/index",
  50. name: "Index",
  51. component: () => import("@/views/home/index.vue"),
  52. alwaysShow: false,
  53. meta: {
  54. title: "首页",
  55. icon: "ep-home-filled",
  56. affix: true
  57. },
  58. children: []
  59. }, {
  60. path: "/workflow/:page*",
  61. name: "workflow",
  62. component: () => import("@/micro/index.vue"),
  63. alwaysShow: false,
  64. hidden: true,
  65. meta: {
  66. title: "微前端",
  67. icon: "ep-Cpu",
  68. affix: false,
  69. micro: true //底座必须加
  70. },
  71. children: []
  72. }, {
  73. path: "/userInfo",
  74. name: "userInfo",
  75. component: () => import("@/views/system/userInfo.vue"),
  76. alwaysShow: false,
  77. hidden: true,
  78. meta: {
  79. title: "个人信息",
  80. affix: false
  81. },
  82. children: []
  83. }
  84. ]
  85. }
  86. ]