Browse Source

更新了axios 与 文化地图的url

napier 3 years ago
parent
commit
7fdd739bfc
2 changed files with 6 additions and 2 deletions
  1. 2 1
      src/components/map.vue
  2. 4 1
      static/js/axios-config.js

+ 2 - 1
src/components/map.vue

@@ -264,7 +264,8 @@ export default {
             class: 'basemap',
             title: 'cdut',
             source: new TileSource({
-              url: 'http://cn-cd-ali-1.natfrp.cloud:10265/geoserver/CDUT/wms',
+              // url: 'http://cn-cd-ali-1.natfrp.cloud:10265/geoserver/CDUT/wms',
+              url: 'http://113.125.147.162:8081/geoserver/CDUT/wms',
               crossOrigin: 'anonymous',
               params: {
                 LAYERS: 'cdut_920',

+ 4 - 1
static/js/axios-config.js

@@ -9,7 +9,10 @@ export default {
   install (Vue) {
     // 请求前缀
     // Vue.prototype.$axios.defaults.baseURL = 'http://127.0.0.1:300'
-    Vue.prototype.$axios.defaults.baseURL = 'http://42.193.189.65:300'
+    // Vue.prototype.$axios.defaults.baseURL = 'http://42.193.189.65:300'
+    // test
+    Vue.prototype.$axios.defaults.baseURL = 'http://203.189.213.228:300'
+
     // 设置超时时间
     Vue.prototype.$axios.defaults.timeout = 10000
     // 请求封装