bill 1 year ago
parent
commit
aff5ac749c
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/view/map/map-right.vue

+ 6 - 2
src/view/map/map-right.vue

@@ -142,6 +142,7 @@ import {
   gotoScene,
   relicsId,
   refreshScenes,
+  SceneStatus,
 } from "@/store/scene";
 import { relics } from "@/store/relics";
 import SingleInput from "@/components/single-input.vue";
@@ -174,11 +175,14 @@ const treeNode = computed(() =>
     label: scene.sceneCode,
     id: scene.id,
     type: "scene",
-    disable: scene.scenePos.every((pos) => !pos.pos || pos.pos.length === 0),
+    disable:
+      scene.calcStatus !== SceneStatus.SUCCESS ||
+      scene.scenePos.every((pos) => !pos.pos || pos.pos.length === 0),
     raw: scene,
     children: scene.scenePos.map((pos) => ({
       label: pos.name,
-      disable: !pos.pos || pos.pos.length === 0,
+      disable:
+        scene.calcStatus !== SceneStatus.SUCCESS || !pos.pos || pos.pos.length === 0,
       id: pos.id,
       type: "point",
       raw: { ...pos, cameraType: scene.cameraType },