|
@@ -163,7 +163,15 @@ import {
|
|
|
showRightCtrlPanoStack,
|
|
|
showRightPanoStack,
|
|
|
} from "@/env";
|
|
|
-import { computed, onUnmounted, ref, shallowRef, watch, watchEffect } from "vue";
|
|
|
+import {
|
|
|
+ computed,
|
|
|
+ nextTick,
|
|
|
+ onUnmounted,
|
|
|
+ ref,
|
|
|
+ shallowRef,
|
|
|
+ watch,
|
|
|
+ watchEffect,
|
|
|
+} from "vue";
|
|
|
import { isTemploraryID, Path } from "@/store";
|
|
|
import { RightFillPano } from "@/layout";
|
|
|
import { useViewStack } from "@/hook";
|
|
@@ -242,6 +250,7 @@ let unKeepAdding = shallowRef<() => void>();
|
|
|
const keepAdding = () => {
|
|
|
unKeepAdding.value && unKeepAdding.value();
|
|
|
node.value?.changeCanEdit(true);
|
|
|
+ console.error(node.value?.changeCanEdit);
|
|
|
// const hide = Message.show({ msg: "请在模型上单击选择路径点位置", type: "warning" });
|
|
|
|
|
|
unKeepAdding.value = () => {
|
|
@@ -251,9 +260,17 @@ const keepAdding = () => {
|
|
|
};
|
|
|
};
|
|
|
|
|
|
-if (!props.data.points.length) {
|
|
|
- keepAdding();
|
|
|
-}
|
|
|
+watch(
|
|
|
+ node,
|
|
|
+ () => {
|
|
|
+ if (!props.data.points.length) {
|
|
|
+ keepAdding();
|
|
|
+ console.error("keeplo");
|
|
|
+ // nextTick(() => stopWatch());
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { immediate: true }
|
|
|
+);
|
|
|
|
|
|
useViewStack(() => {
|
|
|
return togetherCallback([
|