roose 5 anni fa
parent
commit
39faf24e09
2 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 2 1
      src/api/index.js
  2. 2 2
      src/components/index/jlMap.vue

+ 2 - 1
src/api/index.js

@@ -1,5 +1,6 @@
 import ajax from './ajax'
-const BASE_URL = 'http://info.windd.cn/bigScreen'
+//const BASE_URL = 'http://info.windd.cn/bigScreen'
+const BASE_URL = 'http://10.16.4.12:8001'
 
 /**
  * 获取地区

+ 2 - 2
src/components/index/jlMap.vue

@@ -633,7 +633,7 @@
         //展示对应的省
         function showProvince(eName,param) {
           console.log(eName, param)
-          $.getJSON(`/map/province/${eName}.json`, data=>{
+          $.getJSON(`/vueScreen/map/province/${eName}.json`, data=>{
             that.$echarts.registerMap(param, data);
             initEcharts(param);
           })
@@ -644,7 +644,7 @@
         function showCitys(cName, param) {
           console.log(cName, param)
           // 显示县级地图
-          $.getJSON(`/map/city/${cName}.json`, data=>{
+          $.getJSON(`/vueScreen/map/city/${cName}.json`, data=>{
             that.$echarts.registerMap(param, data);
             initEcharts(param);
           })