bill před 1 měsícem
rodič
revize
0837b24c70

+ 1 - 1
src/hook/custom/preset.ts

@@ -114,7 +114,7 @@ export type FullViewMode = "scene" | "map";
 export type CarryViewMode = "full" | "auto" | "auto not-left";
 export type SysViewMode = "full" | "auto";
 
-export const laserModeStack = stackFactory(ref<Mode>(Mode.pano));
+export const laserModeStack = stackFactory(ref<Mode>(Mode.cloud));
 export const fullViewStack = stackFactory(ref<FullViewMode>("scene"));
 export const spiltViewModeStack = stackFactory(ref<number>(null));
 export const magnifierModeStack = stackFactory(ref<boolean>(false));

+ 4 - 3
src/hook/custom/setup.ts

@@ -86,14 +86,15 @@ export const setupSDK = (sdk: SDK) => {
   watchEffect(() => {
     sdk.changeScene(!disabledMap[DisabledCom.Clound]);
   });
-  watchEffect(() => sdk.scene.changeMode(customMap[CustomCom.LaserMode]));
+  watchEffect(() => {
+    console.error("change mode", customMap[CustomCom.LaserMode]);
+    sdk.scene.changeMode(customMap[CustomCom.LaserMode]);
+  });
   watchEffect(() => sdk.carry.setShowHots(!disabledMap[DisabledCom.Hot]));
   watchEffect(() =>
-
     sdk.carry.setShowMeasures(!disabledMap[DisabledCom.Measure])
   );
 
-
   fullScreenSetting(sdk);
   spliceSetting(sdk);
   magnifierSetting(sdk);

+ 3 - 1
src/views/scene/container.vue

@@ -62,7 +62,9 @@ onMounted(async () => {
 
   if (params.temp) {
     console.log("-->", reshootData.value);
-    reshootData.value.forEach((data) => sdk.reshoot && sdk.reshoot(data));
+    reshootData.value.forEach(
+      (data) => sdk.reshoot && sdk.reshoot({ ...data, immediate: false })
+    );
   }
 
   console.error("sdk loaded");

+ 2 - 2
src/views/scene/covers/reshoot.vue

@@ -44,9 +44,9 @@ const okHandler = genUseLoading(async () => {
   if (!reshootPointStack.current.value.value.pos) {
     Message.error({ msg: "请选择补拍点位置", time: 2000 });
   }
-  const data = await reshoot(reshootPointStack.current.value.value.pos)
+  const data: any = await reshoot(reshootPointStack.current.value.value.pos)
   if (data) {
-    useSDK().reshoot(data)
+    useSDK().reshoot({...data, immediate: true})
   } else {
     // Message.error({ msg: "拍摄失败", time: 2000 });
     return;