+
liuyg
2022-01-25 fffba2626ab5f40db8bebcf15fe230444fa16966
+
2 files modified
21 ■■■■■ changed files
src/components/mobilemap/index.vue 2 ●●● patch | view | raw | blame | history
src/router/axios.js 19 ●●●●● patch | view | raw | blame | history
src/components/mobilemap/index.vue
@@ -798,7 +798,7 @@
        //   });
        // }, 2000);
      }
      viewer.scene.screenSpaceCameraController._minimumZoomRate = 3000;
      viewer.scene.screenSpaceCameraController._minimumZoomRate = 1000;
      viewer.scene.screenSpaceCameraController._maximumZoomRate = 5906376272000;
      if (false) {
        //镜头改变示例
src/router/axios.js
@@ -6,19 +6,16 @@
 * isToken是否需要token
 */
import axios from "axios";
let httpName = window.location.hostname;
let url =
  window.location.hostname.indexOf("192.168") != -1
    ? "http://" + httpName + "/apis"
    : "https://" + httpName + "/apis";
// setTimeout(() => {
//   console.log("https://" + httpName + "/apis");
//   console.log(httpName.indexOf(".io"), " httpName");
// }, 3000);
let httpName = window.location.protocol + "//" + window.location.hostname;
let url = httpName + "/apis";
setTimeout(() => {
  console.log(window.location);
  console.log(url);
}, 3000);
const service = axios.create({
  //   baseURL: 'http://192.168.0.107:83',
  // baseURL: 'http://192.168.0.107:80',
  baseURL: "http://171.34.197.243:790", //正常接口
  baseURL: "http://192.168.0.107:80",
  // baseURL: "http://171.34.197.243:790", //正常接口
  // baseURL: "https://6e78efa6.cpolar.io/apis", //https接口
  // baseURL: url, //https接口
  // baseURL: 'http://s16s652780.51mypc.cn/api',