Browse Source

Merge branch 'master' of http://cn-cd-ali-1.natfrp.cloud:10295/iTopmap/vue-cdutDigitalMap

xicheng79 3 years ago
parent
commit
ba5cd268aa
3 changed files with 4 additions and 4 deletions
  1. 1 1
      build/utils.js
  2. 1 1
      src/components/map.vue
  3. 2 2
      static/js/axios-config.js

+ 1 - 1
build/utils.js

@@ -48,7 +48,7 @@ exports.cssLoaders = function (options) {
       return ExtractTextPlugin.extract({
         use: loaders,
         fallback: 'vue-style-loader',
-		publicPath: '../../' // 解决element UI打包后字体文件丢失
+		    publicPath: '../../' // 解决element UI打包后字体文件丢失
       })
     } else {
       return ['vue-style-loader'].concat(loaders)

+ 1 - 1
src/components/map.vue

@@ -659,7 +659,7 @@ export default {
           res.data.forEach(e => {
             that.printFeature('otherLayer', e, 'other')
           })
-          this.addCluster('otherLayer', this.moreStyles.Point)
+          this.addCluster('otherLayer', this.otherStyles.Point)
         })
     },
 

+ 2 - 2
static/js/axios-config.js

@@ -8,8 +8,8 @@
 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://127.0.0.1:300'
+    Vue.prototype.$axios.defaults.baseURL = 'http://42.193.189.65:300'
     // 设置超时时间
     Vue.prototype.$axios.defaults.timeout = 10000
     // 请求封装