Administrator 2 lat temu
rodzic
commit
0b70c60545
2 zmienionych plików z 7 dodań i 3 usunięć
  1. 6 2
      src/views/bigdata/bigdata.vue
  2. 1 1
      vue.config.js

+ 6 - 2
src/views/bigdata/bigdata.vue

@@ -228,9 +228,13 @@ export default {
   },
 
   methods:{
-    rlt(){
+    rlt() {
+      let that = this
       getRlt().then(resp => {
-        this.$refs.bigdataSupermap.loadHeatMap(resp.data)
+        setTimeout(() => {
+          //事件分布
+          that.$refs.bigdataSupermap.loadHeatMap(resp.data)
+        }, 5000)
       })
     }
   },

+ 1 - 1
vue.config.js

@@ -52,7 +52,7 @@ 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://127.0.0.1:3031`,
         target: `http://117.78.49.164:3031`,
         changeOrigin: true,
         pathRewrite: {