Browse Source

fixL fov bug

xzw 2 năm trước cách đây
mục cha
commit
656131dc96
3 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 1 1
      .env.development
  2. 1 1
      src/utils/ConvertViews.js
  3. 2 2
      vue.config.js

+ 1 - 1
.env.development

@@ -1 +1 @@
-VUE_APP_TEST=0
+VUE_APP_TEST=1

+ 1 - 1
src/utils/ConvertViews.js

@@ -380,7 +380,7 @@ export default class ConvertViews extends THREE.EventDispatcher{
             
             let data = this.getCameraData(sourceApp)
             let camera = bimViewer.getViewer().camera
-            if(camera.fov != data.fov){
+            if(data.fov && camera.fov != data.fov){
                 camera.fov = data.fov
                 camera.updateProjectionMatrix()
             }

+ 2 - 2
vue.config.js

@@ -16,11 +16,11 @@ const devServer = {
     },
     proxy: {
         '/service': {
-            target: 'https://www.4dkankan.com/',
+            target: 'https://test.4dkankan.com/',
             changeOrigin: true
         },
         '/smart-site': {
-            target: 'https://www.4dkankan.com/',
+            target: 'https://test.4dkankan.com/',
             changeOrigin: true
         }
     }