bill hace 8 meses
padre
commit
4fce788b55
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. 6 2
      src/views/guide/path/edit-path.vue

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

@@ -181,6 +181,11 @@ defineEmits<{
   (e: "applyGlobal", k: string | string[]): void;
 }>();
 
+onUnmounted(() => {
+  console.error("unmounte");
+  unKeepAdding.value && unKeepAdding.value();
+});
+
 const node = computed(() => getPathNode(props.data.id));
 watch(
   node,
@@ -220,6 +225,7 @@ const keepAdding = () => {
   const hide = Message.show({ msg: "请在模型上单击选择路径点位置", type: "warning" });
 
   unKeepAdding.value = () => {
+    console.error("????");
     node.value?.changeCanEdit(false);
     hide();
     unKeepAdding.value = void 0;
@@ -230,8 +236,6 @@ if (!props.data.points.length) {
   keepAdding();
 }
 
-onUnmounted(() => unKeepAdding.value && unKeepAdding.value());
-
 useViewStack(() => {
   return togetherCallback([
     showRightPanoStack.push(ref(false)),