Parcourir la source

fix: 地图展示

Cooklalala il y a 5 mois
Parent
commit
368ef992a5
1 fichiers modifiés avec 7 ajouts et 9 suppressions
  1. 7 9
      src/views/page1/index.vue

+ 7 - 9
src/views/page1/index.vue

@@ -131,27 +131,27 @@ export default {
     this.$util.autoVueFn(
       [
         {
-          time: 1000 * 10,
+          time: 1000 * 5,
           fn: this.getWeatherForecast,
         },
         {
-          time: 1000 * 10,
+          time: 1000 * 5,
           fn: this.getAnalysisOfTransplantYieldInVariousRegions,
         },
         {
-          time: 1000 * 10,
+          time: 1000 * 5,
           fn: this.getTransplantAreaInEachRegion,
         },
         {
-          time: 1000 * 10,
+          time: 1000 * 5,
           fn: this.getAnalysisOfTransplantingSituation,
         },
         {
-          time: 300,
+          time: 1000 * 5,
           fn: this.getStatistics,
         },
         {
-          time: 1000 * 1,
+          time: 1000 * 5,
           fn: this.getTrendAnalysis,
         },
       ],
@@ -281,9 +281,7 @@ export default {
     },
     async getJSON() {
       console.log(`获取JSOn`)
-      this.getJson = await this.$http.get(
-        `/datav/areas_v3/bound/geojson?code=520600_full`
-      )
+      this.getJson = await this.$http.get(`/api/mapOfTongren`)
       this.hasGetJson = true
     },
   },