routes.ts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. import { RouteRecordRaw } from "vue-router";
  2. const routes: Array<RouteRecordRaw> = [
  3. {
  4. path: "",
  5. redirect: "/dashboard",
  6. },
  7. {
  8. path: "/",
  9. name: "Layout",
  10. component: () => import("@/components/PageLayout/Layout.vue"),
  11. children: [
  12. {
  13. path: "/dashboard",
  14. name: "Dashboard",
  15. component: () => import("@/views/dashboard/index.vue"),
  16. meta: { title: "控制中心", keepAlive: true },
  17. },
  18. {
  19. path: "/quant/manage",
  20. name: "QuantManage",
  21. component: () => import("@/views/quant/manage/index.vue"),
  22. meta: { title: "策略管理", keepAlive: true },
  23. },
  24. {
  25. path: "/bot/manage",
  26. name: "BotManage",
  27. component: () => import("@/views/bot/manage/index.vue"),
  28. meta: { title: "机器人管理", keepAlive: true },
  29. },
  30. {
  31. path: "/exchange/manage",
  32. name: "ExchangeManage",
  33. component: () => import("@/views/exchange/manage/index.vue"),
  34. meta: { title: "交易所管理", keepAlive: true },
  35. },
  36. {
  37. path: "/exchange/apikey",
  38. name: "ExchangeApikey",
  39. component: () => import("@/views/exchange/apikey/index.vue"),
  40. meta: { title: "ApiKey管理", keepAlive: true },
  41. },
  42. {
  43. path: "/server/manage",
  44. name: "ServerManage",
  45. component: () => import("@/views/server/manage/index.vue"),
  46. meta: { title: "服务器管理", keepAlive: true },
  47. },
  48. {
  49. path: "/server/command",
  50. name: "ServerCommand",
  51. component: () => import("@/views/server/command/index.vue"),
  52. meta: { title: "指令管理", keepAlive: true },
  53. },
  54. {
  55. path: "/server/command_record",
  56. name: "ServerCommandRecord",
  57. component: () => import("@/views/server/command_record/index.vue"),
  58. meta: { title: "指令记录", keepAlive: true },
  59. },
  60. {
  61. path: "/system/user",
  62. name: "SystemUser",
  63. component: () => import("@/views/system/user/index.vue"),
  64. meta: { title: "用户管理", keepAlive: true},
  65. },
  66. {
  67. path: "/system/webpage",
  68. name: "SystemWebpage",
  69. component: () => import("@/views/system/webpage/index.vue"),
  70. meta: { title: "页面管理", keepAlive: true },
  71. },
  72. {
  73. path: "/system/organization",
  74. name: "SystemOrganization",
  75. component: () => import("@/views/system/organization/index.vue"),
  76. meta: { title: "组织管理", keepAlive: true },
  77. },
  78. {
  79. path: "/system/permissions",
  80. name: "SystemPermissions",
  81. component: () => import("@/views/system/permissions/index.vue"),
  82. meta: { title: "权限管理", keepAlive: false },
  83. },
  84. ],
  85. },
  86. {
  87. path: "/login",
  88. name: "Login",
  89. component: () => import("@/views/login/index.vue"),
  90. meta: { title: "登录" },
  91. },
  92. {
  93. path: "/404",
  94. name: "404",
  95. component: () => import("@/views/404.vue"),
  96. meta: { title: "404" },
  97. },
  98. {
  99. path: "/:pathMatch(.*)",
  100. redirect: "/404",
  101. },
  102. ];
  103. export default routes;