constantRoutes.js 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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: "/policyDetail",
  61. name: "homePolicyDetail",
  62. component: () => import("@/views/home/policyDetail.vue"),
  63. alwaysShow: false,
  64. hidden: true,
  65. meta: {
  66. title: "政策分享详情",
  67. affix: false
  68. },
  69. children: []
  70. }, {
  71. path: "/workflow/:page*",
  72. name: "workflow",
  73. component: () => import("@/micro/index.vue"),
  74. alwaysShow: false,
  75. hidden: true,
  76. meta: {
  77. title: "微前端",
  78. icon: "ep-Cpu",
  79. affix: false,
  80. micro: true //底座必须加
  81. },
  82. children: []
  83. }, {
  84. path: "/userInfo",
  85. name: "userInfo",
  86. component: () => import("@/views/system/userInfo.vue"),
  87. alwaysShow: false,
  88. hidden: true,
  89. meta: {
  90. title: "个人信息",
  91. affix: false
  92. },
  93. children: []
  94. }
  95. ]
  96. }
  97. ]