|
@@ -478,7 +478,7 @@
|
|
|
newUp = camera.up;
|
|
|
// console.warn("**movePositionHandle***",position,JSON.stringify(camera.position),JSON.stringify(controls.target)
|
|
|
// ,cameraNewPosition,targetNewPosition,JSON.stringify(camera.up))
|
|
|
- tweenCamera(camera.position,controls.target,cameraNewPosition,targetNewPosition,oldUp,newUp,1000);
|
|
|
+ tweenCamera(camera.position,controls.target,cameraNewPosition,targetNewPosition,oldUp,newUp,500);
|
|
|
}
|
|
|
// oldP 相机原来的位置
|
|
|
// oldT target原来的位置
|
|
@@ -1691,13 +1691,17 @@
|
|
|
this.$message.warning("空间正在调整");
|
|
|
return false
|
|
|
}
|
|
|
- let shottingImg = await this.shottingAction() + "?x-oss-process=image/auto-orient,1/quality,Q_46/format,jpg";//开始截图
|
|
|
- console.warn("***shottingImg***",shottingImg);
|
|
|
- setStorage('shottingImg', shottingImg);//把空间选择的数据存入本地缓存里面,方便后续使用
|
|
|
- let gltf = this.lableItem.find(it=>it.spaceId==spaceId);
|
|
|
- if(gltf){
|
|
|
- this.goRoam(gltf)
|
|
|
- }
|
|
|
+ this.locationHandle();
|
|
|
+ setTimeout( async ()=>{
|
|
|
+ let shottingImg = await this.shottingAction() + "?x-oss-process=image/auto-orient,1/quality,Q_46/format,jpg";//开始截图
|
|
|
+ console.warn("***shottingImg***",shottingImg);
|
|
|
+ setStorage('shottingImg', shottingImg);//把空间选择的数据存入本地缓存里面,方便后续使用
|
|
|
+ let gltf = this.lableItem.find(it=>it.spaceId==spaceId);
|
|
|
+ if(gltf){
|
|
|
+ this.goRoam(gltf)
|
|
|
+ }
|
|
|
+ },550);
|
|
|
+
|
|
|
},
|
|
|
//物体漫游-切换页面的方式进入
|
|
|
goRoam(gltf){
|