import { RouteName } from "@/router/routeName";
import { Routes } from "@/router/config";

export const FireRouteName = {
  ...RouteName,
  dispatch: "dispatch",
  teaching: "teaching",
} as const;

export const menuRouteNames = [
  FireRouteName.vrmodel,
  FireRouteName.camera,
  FireRouteName.dispatch,
  FireRouteName.teaching,
  FireRouteName.statistics,
  FireRouteName.organization,
  FireRouteName.role,
  FireRouteName.user,
  FireRouteName.downloadLog,
];

export const routes: Routes = [
  {
    name: FireRouteName.dispatch,
    path: "dispatch",
    component: () => import("./view/dispatch/index.vue"),
    meta: { title: "火调管理", icon: "iconfire_management" },
  },
  {
    name: FireRouteName.teaching,
    path: "teaching",
    component: () => import("./view/dispatch/index.vue"),
    meta: { title: "教学平台", icon: "iconfire_study" },
  },
];
