1
0

appConfig.ts 915 B

12345678910111213141516171819202122232425262728293031
  1. import { AppType } from "@/constant/app";
  2. import { Routes } from "./config";
  3. import { RouteName } from "./routeName";
  4. export const appRoutes: Routes = [];
  5. switch (import.meta.env.VITE_APP_APP) {
  6. case AppType.fire:
  7. appRoutes.push(
  8. {
  9. name: RouteName.dispatch,
  10. path: "dispatch",
  11. component: () => import("@/view/dispatch/index.vue"),
  12. meta: { title: "火调管理", icon: "iconfire_management" },
  13. },
  14. {
  15. name: RouteName.teaching,
  16. path: "teaching",
  17. component: () => import("@/view/dispatch/index.vue"),
  18. meta: { title: "教学平台", icon: "iconfire_study" },
  19. }
  20. );
  21. break;
  22. case AppType.criminal:
  23. appRoutes.push({
  24. name: RouteName.example,
  25. path: "example",
  26. component: () => import("@/view/example/index.vue"),
  27. meta: { title: "案件管理", icon: "iconfire_management" },
  28. });
  29. break;
  30. }