bill 1 bulan lalu
induk
melakukan
cf5063c8c5
2 mengubah file dengan 5 tambahan dan 3 penghapusan
  1. 3 3
      src/views/scene/covers/reshoot.vue
  2. 2 0
      src/views/scene/menus/actions.ts

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

@@ -51,12 +51,12 @@ const okHandler = genUseLoading(async () => {
     // Message.error({ msg: "拍摄失败", time: 2000 });
     return;
   }
-  cancelHandler()
+  reshootPointStack.current.value.value = undefined
+  customMap.mode = Mode.pano;
 })
 
 const cancelHandler = () => {
   reshootPointStack.current.value.value = undefined
-  customMap.mode = Mode.pano;
-  console.log('变成 pano')
+  customMap.mode = (window as any).oldMode;
 }
 </script>

+ 2 - 0
src/views/scene/menus/actions.ts

@@ -349,7 +349,9 @@ const menuActions = {
         onComplete();
       }
     });
+    (window as any).oldMode = customMap.mode;
     customMap.mode = Mode.cloud;
+
     const add = () => {
       hide = Message.success({ msg: "请选择采集全景的位置" });
       disableCover.value = true;