Administrator 2 years ago
parent
commit
117c9ff177
2 changed files with 3 additions and 7 deletions
  1. 1 5
      src/views/bigdata/bigdata.vue
  2. 2 2
      vue.config.js

+ 1 - 5
src/views/bigdata/bigdata.vue

@@ -230,16 +230,12 @@ export default {
   methods:{
     rlt(){
       getRlt().then(resp => {
-        console.log("rrrr",resp)
+        this.$refs.bigdataSupermap.loadHeatMap(resp.data)
       })
     }
   },
   mounted() {
     this.rlt()
-    setTimeout(() => {
-
-      this.$refs.bigdataSupermap.loadHeatMap() //事件分布
-    }, 5000)
   }
 }
 

+ 2 - 2
vue.config.js

@@ -52,8 +52,8 @@ module.exports = {
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://192.168.1.113:3031`,
-        // target: `http://117.78.49.164:3031`,
+        // target: `http://192.168.1.113:3031`,
+        target: `http://117.78.49.164:3031`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''