|
|
@@ -18,7 +18,7 @@
|
|
|
import { computed } from 'vue';
|
|
|
import FixPoint from './fixPoint.vue';
|
|
|
import url from './icon/scene_pin.png'
|
|
|
-import { customMap, genUseLoading, reshootPointStack } from '@/hook';
|
|
|
+import { customMap, genUseLoading, reshootPointStack, useSDK } from '@/hook';
|
|
|
import { type FixPoint as FixPointT } from '@/store/fixPoint';
|
|
|
import Confirm from '@/views/graphic/confirm.vue';
|
|
|
import { reshoot } from '@/store/sync';
|
|
|
@@ -45,11 +45,18 @@ const okHandler = genUseLoading(async () => {
|
|
|
Message.error({ msg: "请选择补拍点位置", time: 2000 });
|
|
|
}
|
|
|
const data = await reshoot(reshootPointStack.current.value.value.pos)
|
|
|
+ if (data) {
|
|
|
+ useSDK().reshoot(data)
|
|
|
+ } else {
|
|
|
+ // Message.error({ msg: "拍摄失败", time: 2000 });
|
|
|
+ return;
|
|
|
+ }
|
|
|
cancelHandler()
|
|
|
})
|
|
|
|
|
|
const cancelHandler = () => {
|
|
|
reshootPointStack.current.value.value = undefined
|
|
|
customMap.mode = Mode.pano;
|
|
|
+ console.log('变成 pano')
|
|
|
}
|
|
|
</script>
|