| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- import { RouteRecordRaw } from "vue-router";
- const routes: Array<RouteRecordRaw> = [
- {
- path: "",
- redirect: "/dashboard",
- },
- {
- path: "/",
- name: "Layout",
- component: () => import("@/components/PageLayout/Layout.vue"),
- children: [
- {
- path: "/dashboard",
- name: "Dashboard",
- component: () => import("@/views/dashboard/index.vue"),
- meta: { title: "控制中心", keepAlive: true },
- },
- {
- path: "/quant/manage",
- name: "QuantManage",
- component: () => import("@/views/quant/manage/index.vue"),
- meta: { title: "策略管理", keepAlive: true },
- },
- {
- path: "/bot/manage",
- name: "BotManage",
- component: () => import("@/views/bot/manage/index.vue"),
- meta: { title: "机器人管理", keepAlive: true },
- },
- {
- path: "/exchange/manage",
- name: "ExchangeManage",
- component: () => import("@/views/exchange/manage/index.vue"),
- meta: { title: "交易所管理", keepAlive: true },
- },
- {
- path: "/exchange/apikey",
- name: "ExchangeApikey",
- component: () => import("@/views/exchange/apikey/index.vue"),
- meta: { title: "ApiKey管理", keepAlive: true },
- },
- {
- path: "/server/manage",
- name: "ServerManage",
- component: () => import("@/views/server/manage/index.vue"),
- meta: { title: "服务器管理", keepAlive: true },
- },
- {
- path: "/server/command",
- name: "ServerCommand",
- component: () => import("@/views/server/command/index.vue"),
- meta: { title: "指令管理", keepAlive: true },
- },
- {
- path: "/server/command_record",
- name: "ServerCommandRecord",
- component: () => import("@/views/server/command_record/index.vue"),
- meta: { title: "指令记录", keepAlive: true },
- },
- {
- path: "/system/user",
- name: "SystemUser",
- component: () => import("@/views/system/user/index.vue"),
- meta: { title: "用户管理", keepAlive: true},
- },
- {
- path: "/system/webpage",
- name: "SystemWebpage",
- component: () => import("@/views/system/webpage/index.vue"),
- meta: { title: "页面管理", keepAlive: true },
- },
- {
- path: "/system/organization",
- name: "SystemOrganization",
- component: () => import("@/views/system/organization/index.vue"),
- meta: { title: "组织管理", keepAlive: true },
- },
- {
- path: "/system/permissions",
- name: "SystemPermissions",
- component: () => import("@/views/system/permissions/index.vue"),
- meta: { title: "权限管理", keepAlive: false },
- },
- ],
- },
- {
- path: "/login",
- name: "Login",
- component: () => import("@/views/login/index.vue"),
- meta: { title: "登录" },
- },
- {
- path: "/404",
- name: "404",
- component: () => import("@/views/404.vue"),
- meta: { title: "404" },
- },
- {
- path: "/:pathMatch(.*)",
- redirect: "/404",
- },
- ];
- export default routes;
|