ZIneen 1 year ago
parent
commit
97241eeda0
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/store/modules/cesiumMap.ts

+ 7 - 1
src/store/modules/cesiumMap.ts

@@ -61,7 +61,13 @@ const actions = {
             }
             if (AppX.appConfig.onlineconfig) {
                 APIs.GetUserInitData({ platform: 1 }).then((result) => {
-                    const resData = result.result;
+                    var resData = result.result;
+                    // console.log("1111111:",resData);
+                    // debugger;
+                    var resData2 = JSON.stringify(resData).replace(/tgdcepc.ctg.com.cn:8443/g, '106.12.170.138:8090')
+                    var resData = JSON.parse(resData2.replace(/https/g, 'http'))
+                    // console.log("22222222:",resData);
+
                     if (resData) {
                         AppX.appConfig.initPosition = JSON.parse(sessionStorage.getItem('initPosition'));
                         AppX.appConfig.currentPrj = JSON.parse(sessionStorage.getItem('currentPrj'));