12345678910111213141516171819202122232425262728293031 |
- import { AppType } from "@/constant/app";
- import { Routes } from "./config";
- import { RouteName } from "./routeName";
- export const appRoutes: Routes = [];
- switch (import.meta.env.VITE_APP_APP) {
- case AppType.fire:
- appRoutes.push(
- {
- name: RouteName.dispatch,
- path: "dispatch",
- component: () => import("@/view/dispatch/index.vue"),
- meta: { title: "火调管理", icon: "iconfire_management" },
- },
- {
- name: RouteName.teaching,
- path: "teaching",
- component: () => import("@/view/dispatch/index.vue"),
- meta: { title: "教学平台", icon: "iconfire_study" },
- }
- );
- break;
- case AppType.criminal:
- appRoutes.push({
- name: RouteName.example,
- path: "example",
- component: () => import("@/view/example/index.vue"),
- meta: { title: "案件管理", icon: "iconfire_management" },
- });
- break;
- }
|