|
@@ -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)),
|