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

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

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

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