bill 1 рік тому
батько
коміт
675bd12a15

+ 1 - 0
src/app/criminal/constant.ts

@@ -8,5 +8,6 @@ export const appConstant: AppConstant = {
   desc: "Three-dimensional remote prospecting platform for criminal scenes",
   ico,
   banner,
+  name: "criminal",
   deptId: criminalDeptId,
 };

+ 1 - 0
src/app/fire/constant.ts

@@ -8,5 +8,6 @@ export const appConstant: AppConstant = {
   desc: "Three-dimensional remote prospecting platform for fire scenes",
   ico,
   banner,
+  name: "fire",
   deptId: fireDeptId,
 };

+ 1 - 0
src/app/index.ts

@@ -24,6 +24,7 @@ export type AppConstant = {
   desc: string;
   banner: string;
   deptId: number;
+  name: string;
   loginComponent?: any;
 };
 

+ 1 - 0
src/app/xmfire/constant.ts

@@ -7,6 +7,7 @@ export const appConstant: AppConstant = {
   title: "火灾调查三维远程勘验平台",
   desc: "Three-dimensional remote prospecting platform for fire scenes",
   ico,
+  name: "fire",
   banner,
   loginComponent: () => import("./view/login/index.vue"),
   deptId: xmfireDeptId,

+ 2 - 1
src/constant/scene.ts

@@ -1,3 +1,4 @@
+import { appConstant } from "@/app";
 import { ModelSceneStatus, QuoteSceneStatus, SceneType } from "@/store/scene";
 
 export const SceneTypeDesc: { [key in SceneType]: string } = {
@@ -25,7 +26,7 @@ export const SceneTypePaths: { [key in SceneType]: string[] } = {
   [SceneType.SWKK]: [
     "/swkk/spg.html",
     "/swkk/epg.html",
-    "/swkk/livestream/fd/",
+    `/swkk/livestream/fd/${appConstant.name}.html`,
   ],
   [SceneType.SWKJ]: ["/swkk/spg.html", "/swkk/epg.html"],
   [SceneType.SWSS]: ["/swss/index.html", "/swss/index.html"],

+ 1 - 1
vite.config.ts

@@ -3,7 +3,7 @@ import vue from "@vitejs/plugin-vue";
 import { resolve } from "path";
 import ElementPlus from "unplugin-element-plus/vite";
 
-let app = "fire";
+let app = "criminal";
 if (process.argv.length > 3) {
   app = process.argv[process.argv.length - 1].trim();
 }