소스 검색

优化:无法打点问题

shaun-sheep 4 년 전
부모
커밋
fe5c86f7a8
2개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. 6 6
      config/prod.env.js
  2. 1 1
      src/components/ledger/lib/bimDialog.vue

+ 6 - 6
config/prod.env.js

@@ -1,12 +1,12 @@
 'use strict'
 module.exports = {
   NODE_ENV: '"production"',
-  BASE_URL: '"http://172.16.44.215"', //测试iframe地址
-  SSO_SERVER: '"http://172.16.44.235:8081"', //测试环境
+  // BASE_URL: '"http://172.16.44.215"', //测试iframe地址
+  // SSO_SERVER: '"http://172.16.44.235:8081"', //测试环境
   // BASE_URL: '"http://192.168.20.236"', //(新)测试iframe地址
   // SSO_SERVER: '"http://192.168.20.236:8086"', //(新)测试环境
-  MQTT_SERVICE: '"ws://172.16.42.210:61614/stomp/"' //MQ测试环境地址
-  // BASE_URL: '"http://mbi.sagacloud.cn"', //线上iframe地址
-  // SSO_SERVER: '"http://sso.sagacloud.cn"',  //正式环境
-  //  MQTT_SERVICE: '"ws://adm.sagacloud.cn/stomp/"' //MQ正式环境地址
+  // MQTT_SERVICE: '"ws://172.16.42.210:61614/stomp/"' //MQ测试环境地址
+  BASE_URL: '"http://mbi.sagacloud.cn"', //线上iframe地址
+  SSO_SERVER: '"http://sso.sagacloud.cn"',  //正式环境
+  MQTT_SERVICE: '"ws://adm.sagacloud.cn/stomp/"' //MQ正式环境地址
 }

+ 1 - 1
src/components/ledger/lib/bimDialog.vue

@@ -177,7 +177,7 @@
           if (this.drawMainScene.markerList.length) {
             let obj = this.drawMainScene.markerList[0], BIMLocation;
 
-            if (this.bimcodeobj.BIMLocation.split(',')[2]) {
+            if (this.bimcodeobj.BIMLocation && this.bimcodeobj.BIMLocation.split(',')[2]) {
               BIMLocation = `${obj.x.toFixed(2)},${(obj.y * -1).toFixed(2)},${this.bimcodeobj.BIMLocation.split(',')[2]}`
             } else {
               BIMLocation = `${obj.x.toFixed(2)},${(obj.y * -1).toFixed(2)},0`