bill vor 8 Monaten
Ursprung
Commit
b1e2f10c27
5 geänderte Dateien mit 8 neuen und 5 gelöschten Zeilen
  1. 1 1
      src/api/constant.ts
  2. 1 0
      src/components/path/sign.vue
  3. 2 1
      src/layout/scene-list/index.vue
  4. 2 1
      src/main.ts
  5. 2 2
      src/store/scene.ts

+ 1 - 1
src/api/constant.ts

@@ -2,7 +2,7 @@ import {namespace} from '@/env'
 
 export enum ResCode {
   TOKEN_INVALID = 4008,
-  UN_AUTH = 4000,
+  UN_AUTH = 4010,
   SUCCESS = 0
 }
 

+ 1 - 0
src/components/path/sign.vue

@@ -61,6 +61,7 @@ watchEffect(() => {
 let currentPoints = props.path.points;
 let changPointsTimeout: any;
 path.bus.on("changePoints", (points) => {
+  console.log(points);
   clearTimeout(changPointsTimeout);
   currentPoints = points.map((p, ndx) => ({
     name: p?.name || `标记点${ndx + 1}`,

+ 2 - 1
src/layout/scene-list/index.vue

@@ -85,8 +85,9 @@ const sync = async (scene: Scene) => {
   window.open(link);
 };
 
+
 const list = computed(() => {
-  const sceneList = caseProject.value?.showScenes
+  const sceneList = true
     ? scenes.value.map((scene) => ({
         raw: scene,
         select:

+ 2 - 1
src/main.ts

@@ -29,8 +29,9 @@ addHook({
     const type = isView ? "view" : "edit";
     if (config.headers) {
       config.headers["page-type"] = type;
+      config.headers["caseId"] = params.caseId;
     } else {
-      config.headers = { "page-type": type };
+      config.headers = { "page-type": type, caseId: params.caseId };
     }
   },
 });

+ 2 - 2
src/store/scene.ts

@@ -23,7 +23,7 @@ export const SceneTypePaths: { [key in SceneType]: string[] } = {
   [SceneType.SWKK]: [
     "/swkk/spg.html",
     "/swkk/epg.html",
-    `/livestream/fd/fire.html`,
+    `/livestream/fd/criminal.html`,
   ],
   [SceneType.SWKJ]: ["/swkk/spg.html", "/swkk/epg.html"],
   [SceneType.SWSS]: ["/swss/index.html", "/swss/index.html"],
@@ -63,7 +63,7 @@ export const getSWKKSyncLink = async (scene: Scene) => {
     // domain: location.href,
     // fromMiniApp: "0",
     role: "leader",
-    avatar: './favicon.ico',
+    // avatar: '/code/favicon.ico',
     redirect: encodeURIComponent(location.href),
     name: userInfo.userName,
     m: scene.raw.num,