bill 8 miesięcy temu
rodzic
commit
6a29883535

+ 2 - 2
src/layout/edit/scene-select.vue

@@ -89,7 +89,7 @@ import {
   initialScenes,
 } from "@/store";
 
-import { uploadMaterialToModel, type Scene } from "@/api";
+import { SceneType, uploadMaterialToModel, type Scene } from "@/api";
 import { getSceneModel } from "@/sdk";
 import { selectMaterials } from "@/components/materials/quisk";
 
@@ -101,7 +101,7 @@ const selectIds = computed(() => fuseModels.value.map((item) => item.modelId));
 const visible = ref(false);
 const keyword = ref("");
 const origin = computed(() =>
-  scenes.value.map((scene) => ({
+  scenes.value.filter(scene => scene.type !== SceneType.SWMX).map((scene) => ({
     ...scene,
     createTime: scene.createTime.substr(0, 16),
     type: SceneTypeDesc[scene.type],

+ 2 - 2
src/views/guide/path/edit-path.vue

@@ -242,11 +242,11 @@ let unKeepAdding = shallowRef<() => void>();
 const keepAdding = () => {
   unKeepAdding.value && unKeepAdding.value();
   node.value?.changeCanEdit(true);
-  const hide = Message.show({ msg: "请在模型上单击选择路径点位置", type: "warning" });
+  // const hide = Message.show({ msg: "请在模型上单击选择路径点位置", type: "warning" });
 
   unKeepAdding.value = () => {
     node.value?.changeCanEdit(false);
-    hide();
+    // hide();
     unKeepAdding.value = void 0;
   };
 };

+ 4 - 2
src/views/tagging-position/index.vue

@@ -45,7 +45,7 @@ import {
   watchEffect,
 } from "vue";
 import { getTaggingPosNode, sdk, taggingsGroup } from "@/sdk";
-import { showTaggingPositionsStack } from "@/env";
+import { custom, showTaggingPositionsStack } from "@/env";
 import {
   autoSaveTaggings,
   getFuseModel,
@@ -80,7 +80,9 @@ useViewStack(() => {
 
 watch(showId, (id) => {
   const position = positions.value?.find((item) => item.id === id);
-  position && flyTaggingPosition(position);
+  if (!custom.showMode) {
+    position && flyTaggingPosition(position);
+  }
 });
 
 let pop: () => void;