bill 1 year ago
parent
commit
ed67503283

+ 1 - 1
src/views/graphic/confirm.vue

@@ -36,7 +36,7 @@ withDefaults(
     disOk: false,
     disCancel: false,
     ok: () => drawRef.value.uiControl.confirmEntry(),
-    cancel: () => () => drawRef.value.uiControl.confirmCancel(),
+    cancel: () => drawRef.value.uiControl.confirmCancel(),
   }
 );
 </script>

+ 2 - 0
src/views/scene/covers/fixPoints.vue

@@ -79,9 +79,11 @@ activeFixPointStack.push(computed(() => selectMeasure.value || selectPoint.value
 
 const select = (point: FixPoint, onMeasure: boolean = false, onRaw: boolean = false) => {
   if (onMeasure) {
+    selectPoint.value = null;
     selectMeasure.value = point;
   } else {
     selectPoint.value = point;
+    selectMeasure.value = null;
   }
 
   if (!onRaw) {

+ 1 - 0
src/views/scene/fixManage.ts

@@ -164,6 +164,7 @@ export const getFix3d = (data: FixPoint) => {
   }
 
   let sdk: SDK = useSDK();
+  console.log(sdk.scene.createFixPoint, args);
   const fix3d = sdk.scene.createFixPoint(args);
   if (drawstatus.value === DrawStatus.ing) {
     drawingFix3d.value.push(fix3d);